You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrick Liechty <pa...@corbanware.com> on 2000/11/15 15:07:38 UTC

Apache is writing 800\n to servlet response outputstream.

I have Apache 1.3 with Tomcat 3.1 running on Linux.  I have a weird problem
where I use Tomcat to download an image file to a non browser client.  I
open the HttpServletResponse.getOutputStream() into a DataOutputStream.  I
proceed to write the image to the stream.  I look at the image after it has
been downloaded and it has "800\n" characters about every 1000 bytes.  This
same code ran fine in JServ with Apache.

I got Apache out of the way by hitting Tomcat directly on port 8080 and the
image downloaded perfectly without the "800\n" characters.

Please help.

Patrick Liechty
Corban Software



Re: Apache is writing 800\n to servlet response outputstream.

Posted by Jon Skeet <jo...@peramon.com>.
Sounds like apache is chunking the output stream, which seems a reasonable
thing to do. Do the headers mention anything about chunking?
What happens if you have a static image served by apache,
out of interest?

Jon