There was a problem with the CGI script handling binary output. This has been fixed in CVS and will be included in the next release. See http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apac he/catalina/servlets/CGIServlet.java?r1=1.22&r2=1.23&diff_format=h and http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apac he/catalina/servlets/CGIServlet.java?r1=1.23&r2=1.24&diff_format=h for the changes.
I have linked to the diffs for TC4 but the same problem existed (and has been fixed) in TC5. Mark > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 28, 2004 12:37 AM > To: [EMAIL PROTECTED] > Subject: problem displaying gif images through cgi script with tomcat > > Hello! > > I'm fairly new to tomcat and my supervisor asked me to try and solve a > problem we are having with displaying gif images through a > cgi script... > > I've set up everything correctly so that cgi scripts run and > have tested a > few simple scripts with no problem. > > Our problem shows up when the script is supposed to display a > gif image. I > have a script set up on an apache server that reads a gif image then > prints it under the content-header of image/gif. on the > apache server, the > image prints with no problem, but when i move the script over to the > tomcat server, i get the "un-displayable-image" image. > > my supervisor believes this may be a problem with the > org.apache.catalina.servlets.CGIServlet class inside > $CATALINA_BASE/server/lib/servlets-cgi.jar. i found the source of the > script online but everything in there is much higher java than i know > right now. We believe that the class is reading in the data > as text and > not bytes, so it gets the gif content wrong and therefore > cannot print it > out correctly. > > I was wondering if any one here has had this problem, and how i can go > about fixing it. > > thanks much! > > Omid Khalili > San Diego Supercomputer Center > Email: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]