Hi Mike,
If you are using the JSP sample code included in ChartDirector for JSP/Java, the charts are output in memory to be sent to the browser. Most of the sample code outputs the chart image as PNG (which is the default). A few sample code, such as the "Surface Chart", output the chart image as JPEG, using code like:
// Output the chart
String chart1URL = c.makeSession(request, "chart1", Chart.JPG);
If you would like to output the chart as a JPEG image file on the hard disk, you may use BaseChart.makeChart. For example:
c.makeChart("c:/aaa/bbb/ccc.jpg");
For the above code to work, please make sure your application or web server has read/write access to the above directory
Hope this can help.
Regards
Peter Kwan |