output PDF in IE KO with Apache

C

Christophe Puaud

Hello,

my webapp output a pdf. With Tomcat 4.1.29 it's OK for IE6 and Mozilla. With
Tomcat 4.1.29 and Apache 2.0.49 it's OK for Mozilla but not for IE : The
file doesn't start with %PDF

The code of my JSP :
response.reset();
response.setContentType("application/pdf");
response.setContentLength(pdfBytes.length);
response.setHeader("content-disposition", "inline;filename=Rapport.pdf");
ServletOutputStream ouputStream = response.getOutputStream();
ouputStream.write(pdfBytes, 0, pdfBytes.length);
ouputStream.flush();
ouputStream.close();


Thanks

Christophe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top