S
sid_mulpuru
This is the code i use to show the PDF in a browser
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
res.setContentType("application/pdf");
res.setHeader("Content-Disposition","inline;Filename= " +
file.getName());
ServletOutputStream sos = res.getOutputStream();
outStream.writeTo(sos);
sos.flush();
outStream.close();
sos.close();
In Netscape i get an error saying the filename does not start with %PDF
and in IE the page just shows up blank. from the blank pagewhen i use
the back button and then hit the forward button the pdf will show up in
IE.
I also tries using fileOuput stream instead of servletoutputstream
FileOutputStream fout = new FileOutputStream( file );
outStream.writeTo(fout);
fout.close() ;
outStream.close() ;
In this case IE does nothing but it works on netscape or mozilla
This is running on websphere 5.0 , apache webserver on linux env
But i need to get this worked on IE any help would be greatly
appreciated!
Thanks in Advance
Sid
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
res.setContentType("application/pdf");
res.setHeader("Content-Disposition","inline;Filename= " +
file.getName());
ServletOutputStream sos = res.getOutputStream();
outStream.writeTo(sos);
sos.flush();
outStream.close();
sos.close();
In Netscape i get an error saying the filename does not start with %PDF
and in IE the page just shows up blank. from the blank pagewhen i use
the back button and then hit the forward button the pdf will show up in
IE.
I also tries using fileOuput stream instead of servletoutputstream
FileOutputStream fout = new FileOutputStream( file );
outStream.writeTo(fout);
fout.close() ;
outStream.close() ;
In this case IE does nothing but it works on netscape or mozilla
This is running on websphere 5.0 , apache webserver on linux env
But i need to get this worked on IE any help would be greatly
appreciated!
Thanks in Advance
Sid