I have an advanced knowledge in creating BIRT reports with Scripted Data Sets. I have encountered a task where I have to dynamically present images filtered by a certain parentID (i.e. the parent object has multiple image parameters and they need to be filtered by the ID of the parent).
So far, I have tried the following:
- Created object like {Double parentId, byte photo} in the backend and I have connected it with a {Double PARENTID, Blob PHOTO} Scripted Data Set.
- Created object like {Double parentId, String photo} in the backend and I have connected it with a {Double PARENTID, String PHOTO} Scripted Data Set. Here I sent a Base64 encoded String.
- Saved photos in a directory and tried to fetch them in the BIRT report with the fetch method in the Scripted Data Set.
What has worked so far is only the 1st option, but the problem with it is if I am sending 6 photos to the report, only 1 is shown, the rest 5 are not (byte array data is correct, photos are always the same).
Any ideas?