Reputation: 6399
I am generating a chart using JFree charting library. After generating it, I am saving it to the local machine(The requirement document specifically reads that I have save it in local machine).
Now there is an a drop down in the Web UI, to export the generated image to excel or to render the image in Web page itself.
Since I am saving the image in the local machine, the img src html tag, does not work.
Is there any way to get around the problem ?
Server used : Weblogic
Upvotes: 0
Views: 189
Reputation: 2421
You need to programatically read the contents of the file from the disk and serve it through some servlet using stream , and set the url of the Img tag in page to this servlet .
Upvotes: 2