Jump to content
Changes to the Jaspersoft community edition download ×

Temp file deletion.


Recommended Posts

I am create the chart using the jasper report and show it in HTML format, for that i am using the image uri and image dir. But problem i was facing that the jasper report creating the image with same name. So I have add the time stamp to which create new dir and store the image in that directory. Now the problem is that how to delete the temp image created by the jasper report.



-Thanks in advance.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

If your application is a web application, it is recommended to use the JR images servlet instead of writing images to directories. To see how to use the image servlet, take a look at the "webapp" sample from the JR project distribution.


If you still need to use image directories, I'm afraid it will be your responsibility to delete them once you'd no longer need them.




Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...