Problem with downloading a pdf file via a servlet called from IE4 or 5.5 S1.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Scott_Campbell
Posted On:   Thursday, November 29, 2001 05:09 PM

I have a servlet that downloads a file by writing the file contents to the browser's output stream. I set the MIME-type using response.setContentType("application/pdf") .



When the browser is IE4 or IE5.5 S1, itr does not recognise the file name or MIME type. I know that this is a bug with IE5.5 S1 and is fixed in S2, but it would be nice to know if there is a work around for IE4 and IE5.5 S1.

Re: Problem with downloading a pdf file via a servlet called from IE4 or 5.5 S1.

Posted By:   Sanjeev_Wadhawan  
Posted On:   Friday, November 30, 2001 03:48 PM

Set the ContentLength i.e. byte length you are streaming back to HTTP in the Servlet.
About | Sitemap | Contact