Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Saving Jasper Report output #62


Dear All,

How to save Jasper Report output(pdf) directly to Database without showing the output to user.

  • replies 5
  • views 511
  • likes 0


simply use the function get_report() instead of show_report(). It will return a blob which you can simply insert into the database.


We are unable to save the Jasper Report output to a specific directory on the server. We are using Tomcat 9 and JasperReportsIntegration- on a Windows OS.
We are using test platform on jasper integrator below is the url generated.
attached is the error

error.jpg --------------------------------------- We have configured the following settings in the file located at C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\JasperReportsIntegration\WEB-INF\conf folder

Save File on Server

directoryWhitelist=C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\JasperReportsIntegration

Can you recommend configuration we need to save a file in specific folder on server.


Please try to use an absolute path for the filename:
Greenshot 2024-04-23 16.27.11.png

And yes, I could figure this out and get a better error message :laughing:

Thank You Very Much , subjected issue is resolved :grinning:
Report output file is generated on server directory,
Solution: As suggested by Mr.Dietmar , passed complete _saveFileName parameter path [specified in directoryWhitelistparamter from file] of output file.

Below is sample url looks like:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\JasperReportsIntegration\santosh.pdf


Wonderful! Happy to hear that. :grin: :thumbsup: