How to Display Dynamic Images #1637
-
Now the data transferred is url or base64 image data. (It's different every time, so it's a dynamic parameter.) How to configure the birt to parse this type of data and display images properly? It works fine when exporting to pdf. thanks~ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You have different way to create the report. The important thing is that the main question is which type of "URL" you will use and in which way the image is represented as base64. For the report you can use an standard image object and you need a little bit code to handle the images. A small example of it is:
If you can provide may be an example of each type URL & base64 we can analyse which kind of URL and base64 are given. |
Beta Was this translation helpful? Give feedback.
-
Thank you, according to the solution you said to pass the base64 type image, it can display the column normally. |
Beta Was this translation helpful? Give feedback.
You have different way to create the report. The important thing is that the main question is which type of "URL" you will use and in which way the image is represented as base64.
Because the URL can include directly the image or is an online reference. A URL can also include a base64-image.
And if you say that the image is a base64-coded image then it is important is the content of the base64-stream really only a image content?
For the report you can use an standard image object and you need a little bit code to handle the images.
You have to check if it is a URL then you can use directly the URL but if you have a raw image coded as base64 you have to decode the base64 and then you can d…