You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Philipp Leusmann <ph...@post.rwth-aachen.de> on 2003/08/04 00:08:10 UTC

Setting filename when sending binary/octet-stream

Hi,

is there a way to set the filename in a servlet when sending a file with
response.setContentType("binary/octet-stream"); and sending binary data with
the ServletoutputStream?

Thanks,
 Philipp



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


AW: Setting filename when sending binary/octet-stream

Posted by Philipp Leusmann <ph...@post.rwth-aachen.de>.
Better than nothing.
Thanks

> -----Ursprungliche Nachricht-----
> Von: Tim Funk [mailto:funkman@joedog.org]
> Gesendet: Montag, 4. August 2003 00:33
> An: Tomcat Users List
> Betreff: Re: Setting filename when sending binary/octet-stream
>
>
> http://jakarta.apache.org/tomcat/faq/misc.html#saveas
>
> Be warned that this may not work for all browsers or might not work for
> different versions or patch levels of the same browser.
>
> -Tim
>
> Philipp Leusmann wrote:
> > Hi,
> >
> > is there a way to set the filename in a servlet when sending a file with
> > response.setContentType("binary/octet-stream"); and sending
> binary data with
> > the ServletoutputStream?
> >
> > Thanks,
> >  Philipp
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>



AW: Setting filename when sending binary/octet-stream

Posted by Philipp Leusmann <ph...@post.rwth-aachen.de>.
Better than nothing.
Thanks

> -----Ursprungliche Nachricht-----
> Von: Tim Funk [mailto:funkman@joedog.org]
> Gesendet: Montag, 4. August 2003 00:33
> An: Tomcat Users List
> Betreff: Re: Setting filename when sending binary/octet-stream
>
>
> http://jakarta.apache.org/tomcat/faq/misc.html#saveas
>
> Be warned that this may not work for all browsers or might not work for
> different versions or patch levels of the same browser.
>
> -Tim
>
> Philipp Leusmann wrote:
> > Hi,
> >
> > is there a way to set the filename in a servlet when sending a file with
> > response.setContentType("binary/octet-stream"); and sending
> binary data with
> > the ServletoutputStream?
> >
> > Thanks,
> >  Philipp
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>



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


Re: Setting filename when sending binary/octet-stream

Posted by Tim Funk <fu...@joedog.org>.
http://jakarta.apache.org/tomcat/faq/misc.html#saveas

Be warned that this may not work for all browsers or might not work for 
different versions or patch levels of the same browser.

-Tim

Philipp Leusmann wrote:
> Hi,
> 
> is there a way to set the filename in a servlet when sending a file with
> response.setContentType("binary/octet-stream"); and sending binary data with
> the ServletoutputStream?
> 
> Thanks,
>  Philipp
> 
>  


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


Re: Setting filename when sending binary/octet-stream

Posted by Tim Funk <fu...@joedog.org>.
http://jakarta.apache.org/tomcat/faq/misc.html#saveas

Be warned that this may not work for all browsers or might not work for 
different versions or patch levels of the same browser.

-Tim

Philipp Leusmann wrote:
> Hi,
> 
> is there a way to set the filename in a servlet when sending a file with
> response.setContentType("binary/octet-stream"); and sending binary data with
> the ServletoutputStream?
> 
> Thanks,
>  Philipp
> 
>