I'm simply trying to write a bitmap to the Response.OutputStream
. Here's what i have:
System.Drawing.Bitmap outputImage =
System.Drawing.Image.FromHbitmap(psd.GetHBitmap());
Response.Clear();
Response.ContentType = "image/bmp";
Response.Flush();
// error occurs here
outputImage.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Bmp);
outputImage.Dispose();
Response.End();
Anyone know what the problem might be?