File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Save png generated by servlet jfreechart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Save png generated by servlet jfreechart" Watch "Save png generated by servlet jfreechart" New topic

Save png generated by servlet jfreechart

Enea Parimbelli

Joined: Mar 08, 2011
Posts: 1
Hello everybody,
I'm writing a webapp to show some statistical graphs. I'm using jfreecharts and jfreechart servlet utilities to open the response outputstream and write the png so that the browser can show it in an img tag.

Everithing is working fine. I can see the graphs I want inside the browser and also print the page.
However I started with jfreecharts 1.0.1 jar (a collegue gave me) and then switched to jfreecharts 1.0.16 (latest release as far as i know): everithing still works but if I try to right click the image in the browser and save it (save image as...) the saved image does not show. But it did work in jfree 1.0.1

When was this modification introduced (I mean since what version)? Is there a workaround to keep using 1.0.16 and to be able to right-click save the generated png?
I am aware of the utilities to save the image on disk in jfree but do not want to use those (many users will create charts dinamically). Just want to give them the option to save the images from their browser.

Thank you in advance for the help
I agree. Here's the link:
subject: Save png generated by servlet jfreechart
It's not a secret anymore!