I think you'll have to write your own GZipGenerator or possibly a GZipSource?
You are right that the gzipped svg document is not a ZIP archive (it doesn't include a table of contents or anything - it's just a single BLOB). On the bright side, gzip is trivial to use in Java, so writing your own shouldn't be hard. CHeers Con > -----Original Message----- > From: rob [mailto:[EMAIL PROTECTED] > Sent: Monday, 30 June 2003 09:35 > To: [EMAIL PROTECTED] > Subject: Re: svgz to jpeg ? > > > On 28 Jun 2003 at 14:51, Upayavira wrote: > > >Ah. So your file on disc is compressed svg. Okay, so you > need to uncompress > it into > >XML and pass that into the SVG2JPG serializer. There's two > ways to do that, > either > >with a zip generator (I think there's an example of one in > the Langham & > Ziegler > >Cocoon book), or using the Jar protocol (see > >http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample). > > > >Both should extract your zipped SVG ready for converting to JPG. > > Thanks again for you reply. > > I've tried using the jar protocol, but it does not accept the > 'svgz' file as > a > valid zip archive. I guess this is because there is no > physical file to > extract > i.e jar:http//localhost/xyz.svg!??? > > Even Winzip will not open it. > > I haven't tried the zip generator yet because I haven't found any > documentation, > and someone has borrowed my Cocoon book !! > > Regards, > > Rob. > > > --------------------------------------------------------------------- > 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]