<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>10 Mar 2015 22:45:00 Z</lastBuildDate><pubDate>10 Mar 2015 22:45:00 Z</pubDate><description>Hi,&#13;
&#13;
I'm trying to encode image files into html (as URI).&#13;
&#13;
This can be done by encoding the image buffer in base 64.&#13;
However, the WX Crypt encodeBase64 gives me complete different results on an image file buffer string than any other standard Base64 encoding scheme out there...&#13;
&#13;
Has anybody already done this?&#13;
I just don't seem to get the right encoding string to work (unicode configuration).&#13;
img is Buffer //WL.Image //img = dLoadImage("C:\WX Projects\UPM_WIN\CRSL_ProcessDuplicates_256_LBL.png",imgConvertir) img = fLoadBuffer("C:\WX Projects\UPM_WIN\CRSL_ProcessDuplicates_256_LBL.png") TmpImgBase64 is Buffer = Crypt(img,"",compresseLZW+crypteAnsi+encodeBASE64) Trace(TmpImgBase64)&#13;
Sample html:&#13;
&lt; img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABl0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuODc7gF0AAIO4SURBVHhe7b1neBzZdS2qH+/77o8bnu9zeE7XsnKwLYfrJIf7fK9lycojjSRrNDnnGc6Qw5xzzhkEc845giQyAQIkQIBgzjmn4Qwnar+19qndfbrQEWxyCE7x+zar... etc etc etc" /&gt;&#13;
All input welcome!&#13;
&#13;
TIA,&#13;
&#13;
Peter H.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50886-wb19-html-embedded-image-encode-base/read.awp</link><title>[WB19] HTML Embedded Image - Encode in base 64</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
