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/01/06 00:21:06 UTC

DO NOT REPLY [Bug 5704] New: - 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?

           Summary: CgiServlet corrupting images?
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ladamski@yahoo.com


I'm trying to implement a mix of CGI and servlet technology, and two of the
CGI's I need to use output PNG's.  The problem is, when they are served through
the CgiServlet, the images come through corrupted on all the browsers that I
have tried (mozilla, explorer, etc).  On the other hand, if I run the cgi by
hand and trim off the HTTP header, I can view the PNGs just fine.  CGI output vs
command line output differs by CGI output being 1 byte longer, and many of the
non ascii characters seem to be escaped differently, but that may just be due to
HTTP encoding?  I can email examples of the raw vs CGI output to anyone who
wants to see it.  Is there another viable way to implement CGI's under Tomcat? 
I don't want to serve them via Apache directly as I need them to be restricted
by session.  Thanks,
  Lucas.

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