in my grails application using jasper Reports i am creating report in pdf format, i want to make it available it for downloading.. so in which directory of my application i need to save file…?
thanks in advance
in my grails application using jasper Reports i am creating report in pdf format,
Share
Possible duplicate?
You can store the files any where you like but, be aware of the directory your storing the files in so they don’t end up taking up all the disk space if you not actively cleaning them up.
so, here is what i would do if you want to store the files and allow the user to download them now or later (not tested and it could be better but shows the concept)…
create a class that represents your directory of reports
Then in your controller you could do things like this….
A few comments about this solution…
-this doesn’t address MIME types so the browser won’t be able to figure out what kind of binary data is coming over the wire.
is this helpful?