Extend Column Display Type For Jasper Report by Attachment
Description
Environment
v12
Attachments
Activity
Peter Takacs March 5, 2024 at 9:27 AM
Tested again on vanilla DB and works fine.
The first time I also started on vanilla iDempiere DB, but first I manually created a Test Jasper process with the Test_attachment.jrxml, then ran your 2Pack, then deleted my Test Jasper process, then started your Jasper Report Record Attachment Test process. Maybe that could cause the problem.

Heng Sin Low March 5, 2024 at 8:39 AM
hi ,
Are you testing this on a vanilla iDempiere DB ?
Perhaps your Test table has addition record with non-image attachment ?
Regards,
Low
Peter Takacs March 5, 2024 at 8:31 AM
Hi , I’ve imported the 2Pack - it created the jasper process also with the attachment, but when I run the process, I get the following error in the console:
org.adempiere.exceptions.AdempiereException: Failed to render report.
…caused by: java.lang.RuntimeException: net.sf.jasperreports.engine.JRException: java.io.IOException: The byte array is not a recognized imageformat.
Here is the error stack trace:

Heng Sin Low March 1, 2024 at 5:58 AM
hi , please test and update here when your team has time to do so, thanks.

Heng Sin Low February 29, 2024 at 2:10 AM
Test Case:
Log in as System Administrator, pack in the following archive and run “Jasper Report Record Attachment Test”
topic
Change:
extend to add support for loading of attachment content.
xref: