TX Text Control's HTML export filter has been improved significantly in version 15.0. Not only does it create 100% valid XHTML by default, but now images can also be embedded in the code.
In previous versions, the original reference to the images could be exported or images could be exported separately in a sub-folder. Newer browsers (Firefox 3.0, Google Chrome or Internet Explorer 8.0) support embedded images in the img tag itself. The exported image tag looks like this:
<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlz AAALEwAACxMBAJqcGAAAAAd0SU1FB9YGARc5KB0XV+IAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3 aXRoIFRoZSBHSU1Q72QlbgAAAF1JREFUGNO9zL0NglAAxPEfdLTs4BZM4DIO4C7OwQg2JoQ9LE1e xdlYvBBeZ7jqch9//q1uH4TLzw4d6+ErXMMcXuHWxId3KOETnnXXV6MJpcq2MLaI97CER3N0vr4M khoXe0rZigAAAABJRU5ErkJggg==" alt="" />
The image data can be embedded as JPG or PNG and it is base-64-encrypted.
To get TX Text Control to embed images in the resulting HTML, the Image.SaveMode property must be set to SaveAsData.
Now, HTML documents can be saved like an RTF or MS Word document including images in one file which was often a requirement from you, our users. Feel free to post your comments on this.