Hi Frank, uetac <[EMAIL PROTECTED]> wrote on 10/25/2007 05:05:26 AM:
> I'm using the svgTranscoder to write the temp file. the svg files can be > compressed in a svgz format. so i'm trying to use it. My first idea is to > produce a gzip temp file like that : > > GZIPOutputStream gz = new GZIPOutputStream(new > FileOutputStream(tempFile)); > TranscoderOutput output = new TranscoderOutput(gz); > The type tempfile is File. > When executing this code i have an exception : > java.lang.Error: Writer expected > org.apache.batik.transcoder.svg2svg.SVGTranscoder.transcode(Unknown Source) This should be easy enough to fix by simply wrapping the GZIPOutputStream with a java.io.OutputStreamWriter and pass that to the TranscoderOutput constructor.
