HTML containing base64 img with TRvHtmlImporter.LoadHtml

General TRichView support forum. Please post your questions here
Post Reply
andreas.m
Posts: 2
Joined: Wed Jan 07, 2015 9:34 am
Location: Deutschland

HTML containing base64 img with TRvHtmlImporter.LoadHtml

Post by andreas.m »

Hello,

i'm using TRvHtmlImporter.LoadHtml method to convert HTML to rtf. After that i load the RTF with TRichViewEdit.LoadTextFromStream(rtf,0,0, false, CP_ACP) into the Editor (TRichViewEdit).

My problem is that base64 encoded images, which are included in HTML will not be shown in the RTF file correctly: i see only the base64 string.

TRichView version 15 2015
TRvHtmlImporter version 0.0052

Thank You
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you mean images are encoded directly in <img src>?
It is not supported by the importer. But you can provide the image yourself in RvHtmlImporter.OnImageRequired2 event.
andreas.m
Posts: 2
Joined: Wed Jan 07, 2015 9:34 am
Location: Deutschland

Post by andreas.m »

Sergey Tkachenko wrote:Do you mean images are encoded directly in <img src>?
Yes.


Okay, thank You for the response.
Post Reply