public System.Drawing.Image byteArrayToImage(byte[] byteArrayIn)
{
System.Drawing.Image returnImage = null;
try
{
MemoryStream ms = new MemoryStream(byteArrayIn);
returnImage = System.Drawing.Image.FromStream(ms); // parameter is invalid
}
catch (Exception ex)
{
string a = ex.ToString();
// Response.Write("sfdsfn");
}
return returnImage;
}
I did lot of search in Net but i cant get any useful answer for me? any help..thanks in advance
Image? You cannot simply put it in an<asp:Image>element, if that's what you were thinking, and the alternative use I can come up with does not require a conversion toSystem.Drawing.Image. What is your end goal?