I've got no error message
but an empty jpeg file from the following code:

Writer svg = new OutputStreamWriter(
	new FileOutputStream(new File(output)),"UTF-8");
svgGenerator.stream(svg, true); svg.flush(); svg.close();
JPEGTranscoder t = new JPEGTranscoder();
t.addTranscodingHint(
	JPEGTranscoder.KEY_QUALITY, new Float(.8));
TranscoderInput tin = new TranscoderInput(
	new File(output).toURL().toString());
Writer jout = new OutputStreamWriter(
	new FileOutputStream(new File(jpegOutput)));
TranscoderOutput tout = new TranscoderOutput(jout);
t.transcode(tin, tout); jout.flush(); jout.close();


The file "output" contains a fine svg grafic,
I can view it with the Explorer.
The file jout is generated but empty.
I'm using 1.5.4b of batik on Windows XP.

Even if I substitute the input with any batik delivered sample
the output stays empty.
Any Idea what's wrong with the code?

Rolf



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to