I'm using an HttpHandler to display images from memory ... which is working fine.
The image is displayed as a .png format in a popup window.
My problem is printing the image from IE7 Web Browser using the popup menu displayed after doing a right-click, selecting 'Print Picture'.
A blank page is being printed ... i.e. No Image, just the url and date on the bottom of the page and the page number on the top.
I have also tried this with the image formatted as .jpg, with the same result.
Neither 'Print Picture' or 'E-mail Picture' is working properly. With E-mail, an email is created, but no image.
Interestingly, 'Save Picture' and "Set as Background' both work fine.
The Image Control's ImageUrl="~/ImageHandler.ashx"
The code used to update the image in the ImageHandler is located in the ProcessRequest function:
// PNG Images are 'special' You cannot save PNG images directly into the output stream.
// Instead you need to write the image first inot a memory stream;
System.IO.MemoryStream ms = new System.IO.MemoryStream();
context.Response.ContentType = "image/png";
View Complete Post