Support for base64 image url?
AnsweredDoes reporting support a base64 encoded image as a value for the imageUrl property in a PictureBox control?
When I set the url it is shown correctly inside the designer. However, when I generate my report the PictureBox remains blank :(
Best regards,
Laurens
-
Official comment
Hi Laurens,
You can do this by setting an expression on the Image Source property of the PictureBox control with a built-in function called Base64Decode. It'll look like this:
Note: you don't include the "data:image/png;base64," preamble if your base64 source is a data URL.
--Ryan
-
Thanks, that is exactly what I needed!
0 -
A small update on this. In the upcoming 5.17 release the Base64Decode function will automatically detect and strip off the "data:image/png;base64," preamble from the value you provide it so that you can more easily use data URLs.
--Ryan
0
Please sign in to leave a comment.
Comments
3 comments