Tsui, Alban wrote: >Hi > >I am using Cocoon xsp etc. to generate svg graphics. Is there anyway that I >can gzip the xml/svg file before piping it back to the browser? It's because >the adobe svg plug-in can understand gzipped svg and I would like to take >advantage of that for my huge svg chart. > >Alban > >This message may contain privileged and/or confidential information. If you >have received this e-mail in error or are not the intended recipient, you >may not use, copy, disseminate or distribute it; do not open any >attachments, delete it immediately from your system and notify the sender >promptly by e-mail that you have done so. Thank you. > >--------------------------------------------------------------------- >Please check that your question has not already been answered in the >FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > >To unsubscribe, e-mail: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> > If you can fit a Java program in the stream, there are Java (2) classes for GZipInputStream and GZipOutputStream.
http://java.sun.com/j2se/1.3/docs/api/java/util/zip/GZIPInputStream.html http://java.sun.com/j2se/1.3/docs/api/java/util/zip/GZIPOutputStream.html --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>