How are you writing to the outputstream? You should be doing something like this below( taken from org.springframework.web.servlet.view.document .AbstractPdfView)
private static final int OUTPUT_BYTE_ARRAY_INITIAL_SIZE = 4096; // IE workaround: write into byte array first. ByteArrayOutputStream baos = new BteArrayOutputStream(OUTPUT_BYTE_ARRAY_INITIAL_SIZE); . . Your code to write pdf to baos . . // Write content type and also length (determined via byte array). response.setContentType("application/pdf"); response.setContentLength(baos.size()); // Flush byte array to servlet output stream. ServletOutputStream out = response.getOutputStream(); baos.writeTo(out); out.flush(); -----Original Message----- From: Jonadan [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 7:46 AM To: users@tomcat.apache.org Subject: PDF problem on IE from JSP Hi, I am generating PDF documents from JSP directly to output stream. However when I try it from IE, it does not work properly. Sometime nothing happens. Sometimes, show data corruption error. Sometimes connection error, etc. I suspect it may be something to do with partial content reading from IE and Tomcat does not support or my JSP does not take care, etc. Anyone had the same problems before? Jonadan. -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14879788.htm l Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]