Page 1 of 1

HTML containing base64 img with TRvHtmlImporter.LoadHtml

Posted: Wed Jan 07, 2015 9:55 am
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

Posted: Thu Jan 08, 2015 11:23 am
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.

Posted: Thu Jan 08, 2015 11:34 am
by andreas.m
Sergey Tkachenko wrote:Do you mean images are encoded directly in <img src>?
Yes.


Okay, thank You for the response.