System.Drawing.Image as source for asp.net image container
Posted
by trnTash
on Stack Overflow
See other posts from Stack Overflow
or by trnTash
Published on 2010-05-12T06:58:37Z
Indexed on
2010/05/12
7:04 UTC
Read the original article
Hit count: 252
I created image from byte array
System.Drawing.Image newImage;
using (MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length))
{
ms.Write(imageBytes, 0, imageBytes.Length);
newImage = System.Drawing.Image.FromStream(ms, true);
}
and now I need to have this image as a source for asp:Image (System.Web.UI.WebControls.Image). Is this possible as I know that conversion is impossible?
© Stack Overflow or respective owner