byte[] ImgGet ;
/*image setUp*/
ImgGet = (byte[])objEVendorInformation.SupplierLogo;
string strfn = Convert.ToString(DateTime.Now.ToFileTime());
FileStream fs1 = new FileStream(strfn, FileMode.CreateNew, FileAccess.Write);
fs1.Write(ImgGet, 0, ImgGet.Length);
fs1.Flush();
fs1.Close();
ImageSourceConverter imgs = new ImageSourceConverter();
SupplierLogoimage.SetValue(Image.SourceProperty, imgs.ConvertFromString(strfn));
/*End Image Setup*/
/*image setUp*/
ImgGet = (byte[])objEVendorInformation.SupplierLogo;
string strfn = Convert.ToString(DateTime.Now.ToFileTime());
FileStream fs1 = new FileStream(strfn, FileMode.CreateNew, FileAccess.Write);
fs1.Write(ImgGet, 0, ImgGet.Length);
fs1.Flush();
fs1.Close();
ImageSourceConverter imgs = new ImageSourceConverter();
SupplierLogoimage.SetValue(Image.SourceProperty, imgs.ConvertFromString(strfn));
/*End Image Setup*/
Comments
Post a Comment