login about faq

In the release notes for the next Chilkat version, you mention that IMG tags where being dropped in MHT if they contained images as encoded binary data. I recently attempted to insert html code having these types of tags into an email object using the your own example (https://www.example-code.com/csharp/mht_emailHtmlString.asp).

The end result was that IMG tags were dropped, so I initially thought that these types of tags where not supported, but know I guess it may be caused by the above-mentioned bug?

What I basically want is to convert images (whether embedded or links) into CID references if mht.UseCids is enabled. Will that work in the next version released?

asked Jan 07 '17 at 18:23

roan98dk's gravatar image



(for those that don't know) An HTML image tag that embeds the image data directly within the HTML looks like this:

<img src="data:image/png;base64,iVBORw0KG ...">

Older versions of Chilkat would inadvertently drop these tags. The fix in recent versions was to leave them as-is. There was never a version of Chilkat that would extract the data from this kind of tag and move it into a related item (and replace as a "src="CID:xxxx" link). So unfortunately, there is no feature to do it. :(


answered Apr 04 '17 at 09:56

chilkat's gravatar image

chilkat ♦♦

I have already resorted to a workaround, where I parse the html code for embedded encoded images and add them as related items in the email object. It works satisfactory but requires a bit more coding :-)

(Apr 04 '17 at 10:16) roan98dk
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jan 07 '17 at 18:23

Seen: 2,573 times

Last updated: Apr 04 '17 at 10:16

powered by OSQA