I have an ASP application that prints images associated with database records. When a record is displayed, my code retreives the filename. The filename is then passed to a helper script that actually loads the image into a buffer and does some massaging on it. The helper script then outputs the image using Response.BinaryWrite.
The helper code looks like this: (oIH is an object that does image manipulations on its Buffer member)
Call oIH.Resize_Image(iHeight, iWidth, 1)
Response.ContentType = "image/jpeg"
The display code looks like:
<img style="border: 1px solid #000080;" src="Utility_ImageHelper.asp?file=<%=sFileName%>&Grayscale=0&Height=200"></img>
This code works fine for displaying the image in the browser window. But, when I print the page from the browser (IE), instead of the image I get the little "red X" icon indicating the picture did not load. Does anyone know why IE can retrieve it for display, but not for printing?