All you need to do is set the contentType in the response to the proper
mimeType. 

res.setContentType("application/pdf");

If you still have troubles, let me know (off the list) and I'll help you
out.


> -----Original Message-----
> From: Norman Jefferies [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 6:31 PM
> To: Orion-Interest
> Subject: Re: Downloading a file via a Servlet
> 
> 
> I couldn't even get IE to recognize that the file I was 
> downloading was
> a PDF file from a database via servlet, but obviously I 
> missed something
> you got to work, I would love to know what that is. As for actually
> saving it, I understand the problem but I haven't been able to get
> anything to work that will change the MIMI settings that the browser
> thinks it's reading. IE simply ingnores all of the header 
> information as
> far as I can tell, and if the URL doesn't describe your
> download...bummer.
> 
> Norm Jefferies
> Senior Software Engineer
> Dept Of Medicine 
> University of California, San Francisco
> http://HIVInSite.ucsf.edu
> 

Reply via email to