Question : Need to convert bytes to image in web page ASP.Net C#

I am utilizing a web services that delivers me an image in an array of bytes.  I am having no issues retrieving the bytes, however, I can't figure out how to convert these bytes into a System.Web.UI.WebControls.Image.  I just want a clearcut answer where I'm starting with the bytes themselves.  I have no need to upload from any file or database, or to save back to one, I just want to take the bytes I already have onhand, convert them to an image, and display them in the page.  

If anyone could give a clear example from start to finish I'd appreciate it, thanks.

Answer : Need to convert bytes to image in web page ASP.Net C#



and on View.aspx.cs write on page load function...
protected void Page_Load(object sender, EventArgs e)
      {
byte[] Array= fnGetByteArrayFromWebService();// get it from ur web service .
Response.ContentType="image/Jpeg";
Response.BinaryWrite(Array);
Response.Flush();
Response.End();
}
Random Solutions  
 
programming4us programming4us