I need to display an image in 'Image Control' of aspx page.Now the image is displayed in the aspx page itself.But I need to display it in 'Image Control'.This is a map application and the image is accessed from Webservice.
The part of code to display the image in aspx page is added here.
The part of code to display the image in aspx page is added here.
Code:
Bitmap bmp = new Bitmap(img, 100, 100);
Graphics g = Graphics.FromImage(bmp);
g.DrawImage(img, 100, 100);
System.IO.MemoryStream ms = new System.IO.MemoryStream();
bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Gif);
Response.BinaryWrite(ms.GetBuffer());