tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <rosenberg.l...@googlemail.com>
Subject Re: What is the best way to send back a file as http response?
Date Sun, 02 Apr 2006 18:50:28 GMT
Are we talking about big files? Otherwise just read it at once and
write it through a bufferedoutputstream.

leon

On 4/2/06, Meryl Silverburgh <silverburgh.meryl@gmail.com> wrote:
> Hi all,
>
> Can you please tell me what is the best way to send back a file as
> http response in a Servlet?
> Should I use NIO?
> Or I just use the normal, open the file, read it a chuck at a time and
> write that to the servlet output stream?
>
> Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Mime
View raw message