i have function which will create the thumbnail image :
Image photo=System.Drawing.Image.FromStream(myFile.InputStream);
Bitmap bmp = new Bitmap(100, 100);
Graphics graphic = Graphics.FromImage(bmp);
graphic.InterpolationMode = InterpolationMode.HighQualityBicubic;
graphic.SmoothingMode = SmoothingMode.HighQuality;
graphic.PixelOffsetMode = PixelOffsetMode.HighQuality;
graphic.CompositingQuality = CompositingQuality.HighQuality;
graphic.DrawImage(photo, 0, 0, 100, 100);
The bmp image will be in bitmap format.
How do I convert it so I assign in image tag and display on a page?