This is a migrated thread and some comments may be shown as answers.

Base64 images not displayed after html import

1 Answer 415 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Joachim
Top achievements
Rank 1
Joachim asked on 26 Jun 2018, 01:22 PM

Hi,

base 64 encode images in html source file are not shown in RadRichTextBox after being imported via HtmlFormatProvider.Import (string). Do I miss a thing or made a mistake?

A sample solution is attached (the generated.html shows the expexted result)

 

Thanks in advance

Best regards  Joachim

1 Answer, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 27 Jun 2018, 09:49 AM
Hi Joachim,

Based on the document and information you've sent in a private ticket, this issue seems to be caused by an invalid Base 64 character present in the img src data of all images in the HTML. Microsoft Word also does not display the broken images. If the invalid characters are removed, the images are imported correctly. 
For a full list of supported Base 64 characters you can refer to this link.

Regards,
Polya
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RichTextBox
Asked by
Joachim
Top achievements
Rank 1
Answers by
Polya
Telerik team
Share this question
or