Exemple #1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        ServiceReference2.Service1SoapClient _client2 = new ServiceReference2.Service1SoapClient();
        DataSet   ds = _client2.GetNurOrdersTest("010000000002");
        DataTable dt = ds.Tables[0];

        foreach (DataRow dr in dt.Rows)
        {
            //MemoryStream buf = new MemoryStream((byte[])dr["ITEMPICTURE"]);
            //byte[] byteArray = ();
            //Response.BinaryWrite((byte[])dr["ITEMPICTURE"]);


            WritePhoto(Encoding.Default.GetBytes(dr["ITEMPICTURE"] + ""));
            //MemoryStream buf = new MemoryStream(Encoding.Default.GetBytes(dr["ITEMPICTURE"] + ""));
            //System.Drawing.Image.FromStream(buf);
            //GetImageByBytes(Encoding.Default.GetBytes(dr["ITEMPICTURE"] + ""));
        }
    }
 protected void Button1_Click(object sender, EventArgs e)
 {
     ServiceReference2.Service1SoapClient c = new ServiceReference2.Service1SoapClient();
       TextBox4.Text =c.product_service(TextBox1.Text);
 }