I have a BIRT report with an image in the master page.
My BIRT design file:
I embedded a png inside the report and it generated the following XML after the body
tag:
<list-property name="images">
<structure>
<property name="name">filename.png</property>
<property name="type">image/png</property>
<property name="data">
BASE64 of the image
</property>
</structure>
</list-property>
Then, I have included it into the master page, adding this element:
<image id="828">
<property name="source">embed</property>
<property name="imageName">filename.png</property>
</image>
Behaviours of my BIRT design file:
Then, If I run the preview from the BIRT designer it works great with both HTML and PDF output. If I render it using IPDFRenderOption
(from my software) it generates the correct pdf
fine. But if I use HTMLRenderOption
, then the image is not embeded into the HTML report, but it is rendered with something like:
<img src="file:/.../apache-tomcat-7.0.35/design11.png">
What I expect:
While I expected something like:
<img src="data:image/png;base64,BASE64 STUFF THAT I PUT IN THE LIST-PROPERTIES ">
So, how can I let BIRT, when executed with HTMLRenderOption
, to embed my image into the HTML file instead of creating a link to it?