We are trying to load an image which is stored base64-encoded in one DataSource.
The .mrt file contains the following entity (... marking the position where we tried the different possibilities listed a bit lower).
Code: Select all
<Image1 Ref="60" type="Image" isKey="true">
<Border>None;[31:73:125];1;DashDot;False;4;Black</Border>
<Brush>Transparent</Brush>
<ClientRectangle>13.6,0.4,1.8,2.4</ClientRectangle>
<Conditions isList="true" count="0" />
...
<Margins>0,0,0,0</Margins>
<Name>Image1</Name>
<Page isRef="3" />
<Parent isRef="13" />
</Image1>
Code: Select all
var DataSource = {
"DataSource": {
"image": base64EncodedImage,
"image2": "data:image/png;base64," + base64EncodedImage
}
}
Code: Select all
<DataColumn>DataSource.image</DataColumn>
<DataColumn>DataSource.image2</DataColumn>
Code: Select all
<Image>{DataSource.image}</Image>
<Image>data:image/png;base64,{DataSource.image}</Image>
<Image>{DataSource.image2}</Image>
Question:
Is there a possibility to reference base64-encoded images from a DataSource?
Thank you in advance!