File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Printing a Servlet Generated Image in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Printing a Servlet Generated Image in IE" Watch "Printing a Servlet Generated Image in IE" New topic

Printing a Servlet Generated Image in IE

Calvin Robol

Joined: Feb 01, 2002
Posts: 3
Wondering if anyone has come across this problem. I am sending an image to a browser via a Servlet that retrieves the image from another server. The image displays in the browser just fine, however when I try to print the image, it will not print in IE. It will print in netscape however. I checked the content type, the content length, and all the http headers sent to the browser, and they are all correct. One thing that does happen, is if I try to save the image, IE wants to save it as a bitmap, and the size of the image is larger than the content length returned. If anyone has any suggestions, Id love to hear them.
I agree. Here's the link:
subject: Printing a Servlet Generated Image in IE
Similar Threads
File download with servlets
Cannot open PDF directly, save works
how does JSP get an image created from a servlet ?
Downloading file from Oracle DB
copyrite protection