Loading PDF as Base-64 into Picture control.

1 Answer 370 Views
PictureBox Report Designer - Web Report Designer (standalone)
Carlos
Top achievements
Rank 1
Iron
Iron
Iron
Carlos asked on 26 Jan 2024, 06:58 PM

Hello Team,  

I have a report that contains 2 images. one jpg --> base64   and one PDF --> base64. I use expression to fill the value for the picture Box controls as shown below. 

When I run the report the PDF image is missing. I also tried to paste the B64 text, but it didn't work. I'm I missing a step?   

Using Report Designer version 17.2.23.1010.  .NET Framework 4

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 30 Jan 2024, 03:26 PM

Hello Carlos,

Indeed, we support Base64 as an Image format in the PictureBox item. The PictureBox cannot display PDF Base64 strings though. The Reporting Engine determines the type of the Base64 encoded content from its starting symbols that indicate the MIME type - see for more details the Stackoverflow thread How to get MIME-TYPE from Base 64 String? If the Image value does not represent a valid image, it is treated as a URL.

Regards,
Todor
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Carlos
Top achievements
Rank 1
Iron
Iron
Iron
commented on 08 Feb 2024, 05:20 PM

Thank you.
Tags
PictureBox Report Designer - Web Report Designer (standalone)
Asked by
Carlos
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Todor
Telerik team
Share this question
or