You can not simply bind binary image to a control. You have to create an HttpHandler(.ashx) that process the image.
using System;
using System.Web;
public class ImageHandler : IHttpHandler, IReadOnlySessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.BinaryWrite(yourImageByte);
}
public bool IsReusable {
get { return false; }
}
}
Finally you can bind the image to the handler.
Image1.ImageUrl ="ImageHanderl.ashx"
read this -
ASP.NET Futures - Generating Dynamic Images with HttpHandlers gets Easier - Scott Hanselman