You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/11/15 05:22:42 UTC

DO NOT REPLY [Bug 5704] - CgiServlet corrupting images?

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5704>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5704

CgiServlet corrupting images?





------- Additional Comments From ladamski@yahoo.com  2002-11-15 04:22 -------
I think this is due to the Reader that the CGIServlet uses- on big-endian
machines (SPARC specifically is where I was this problem) it might be peforming
some sort of translation on the input that screws up binary data like jpegs. 
When I wrote a standalone CGIServlet, I instead used:

BufferedInputStream input = new BufferedInputStream(p.getInputStream());

and it worked fine.  My 2 cents.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>