My MHTML will not display images correctly when added by me.

P

Peter Rilling

I don't know if I am missing something in my MHTML document.

I have a tool that uses CDO to create an MHTML document. That document, by
itself, I can view just fine in IE. This tool also can augment the MHTML by
adding new sections (with the help of CDO) such as additional graphic
elements. I perform a base64 encoding before creating a body part and the
resulting section looks good when I view it in notepad. The problem is that
if I add an <img> tag to the HTML that references the image, the image only
shows the red X.

As far as I know the information is being encoded correctly. But I just
want to know if there is something that I might be missing. Some special
format that is not documented that needs to be taken into account.

Any ideas?
 
H

H Leboeuf

Clear the IE cache. I.E./Tools/Options/General/Delete files (and delete
offline content.) It's often recommended that the Temporary Internet Files
(folder) be kept at
40-50 MB. Bigger isn't necessarily better.
If still no joy then have a look at this page for other issues.
http://www.generation.net/~hleboeuf/ieimage.htm

If still no joy please post part of your code or give us a url to look at.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top