0

I have a report using a dynamic image element. The images live in a folder specified by the user stored in the database. The filepath + name of the image for the report is stored in the database, which is being returned to jasper, and it's set in the "image expression" tag. While this works in Windows through iReport, it does not seem to work in the Linux environment (it's a plugin for another app).

I did some research by hardcoding the values, and it seems like it fails when using the absolute path, (ie "/opt/reports/" + "RPT0000000321.jpg"). However, it does work when using the same file using relative paths (ie "../" + "RPT0000000321.jpg"). Is there something I am missing in the absolute path that it couldn't find the image? I would prefer the absolute path if possible. I can use absolute path fine in Windows (ie: "H:/reports/" + "RPT0000000321.jpg")

Alex K
  • 21,796
  • 18
  • 106
  • 231
user1228787
  • 41
  • 1
  • 3

0 Answers0