My application creates PDF files using images stored in the EAR. Images change approximately every month, and I would like to move them to the database in order to avoid deployment every time I change the image file.
Unfortunately, there is a problem:
<fo:block>
<fo:external-graphic src="testImage.gif"/>
</fo:block>
FOP can simply accept a URL as a parameter. I could create a servlet that reads the database and can give an image, and then I could reference the servlet url from the FOP context, but I think this is not the best solution. Another solution would be to store the images in the file system and write the file names in the database, but I don't like any of these options. What do you think of these decisions? Is there a third? thanks Zoltan
source
share