Search found 2 matches

by hkollmann
Wed Mar 31, 2004 3:50 pm
Forum: JFreeChart
Topic: Handling output streams-Represent chart but NOT in an image
Replies: 10
Views: 12544

Have you closed the output stream? I use this code: try { response.setContentType("image/png"); OutputStream out = response.getOutputStream(); ChartUtilities.writeChartAsPNG(out, chart, data.getWidth(), data.getHeight()); }finally { out.close(); } cheers, Henner
by hkollmann
Tue Mar 30, 2004 3:42 pm
Forum: JFreeChart
Topic: Exception with writeChartAsJPEG
Replies: 0
Views: 1936

Exception with writeChartAsJPEG

Hello, switching from jfreechart-0.9.16 to jfreechart-0.9.17 leads to an exception while using ChartUtilities.writeChartAsJPEG(out, chart, data.getWidth(), data.getHeight)); Exception text: java.io.IOException: reading encoded JPEG Stream Any idea? What's going wrong? The same statement is working w...