tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brantley Hobbs" <bho...@itos.uga.edu>
Subject RE: IE6 and download problem using tomcat java servlet
Date Tue, 14 Sep 2004 14:43:57 GMT
> I am having a problem downloading a jpeg file from a tomcat java
servlet
> to Internet Explorer 6.0.  I have changed the file extension to "zzz"
to
> force the download prompt.     If I restart tomcat(version 4.1.x), the

While this is a working solution, it's not ideal.  To do this
seamlessly, you should set your output headers to a different mime type.
"application/octet-stream" works well for provoking a download dialog.

Here's an example:
response.setContentType("application/octet-stream");


B.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message