Unfortunately, I can't use Batik v1.1 because I'm also using FOP in the same servlet, which requires an earlier version of Batik.
I don't remember Java crashing with PNG images. But I remember I couldn't use PNG images because IE 5.5 didn't display them correctly. The text always appeared so faint, it was almost unreadable. Other image viewers displayed the PNG correctly, so I don't know what the problem was. I did work around the crash by creating the image on a ByteArrayOutputStream and then transfering it to the servlet stream. Not the ideal solution, but better than the servlet going down hard. Thanks, Scott -----Original Message----- From: Thierry Kormann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 2:48 AM To: Batik Users; Scott Moore Subject: Re: Fatal Error using Batik in a Servlet On Sunday 07 October 2001 17:28, Scott Moore wrote: > I'm using Batik in a Servlet to create images on the fly using SVG. Using > the transcoders (specifically the JPEG), I create a JPEG image and directly > write that image to the servlet response output stream. This all works > fine until a socket closes prematurely. > > Unfortunately, sockets close prematurely all the time in browsers if you > click off the page before the image is finished rendering. Sometimes I > just get a socket closed exception from the code and everything continues > on fine. Unfortunately, all too often, I get this: > Do you still have the bug with batik1-1 ? Does the bug appear when rasterizing SVG images in PNG instead of JPG ? Thierry. --------------------------------------------------------------------- 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]