Images not being represented in BIRT

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:

  1. Created object like {Double parentId, byte photo} in the backend and I have connected it with a {Double PARENTID, Blob PHOTO} Scripted Data Set.
  2. 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.
  3. 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?

@armingrudd

Hi @bnikolov,

Could you provide us with an example workflow demonstrating what you already have and ideally a desired report example?

From what I understood, you have a set of images and your filtered by some parentID. Now, you want to have the remaining images in your report.

If you have done the preprocessing in KNIME then it’s just the matter of using a table and image report item to have them in your report:

Also, wanted to ask if you have tried the new KNIME Reporting feature? Should make everything much easier.

1 Like