By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,370 Members | 1,552 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,370 IT Pros & Developers. It's quick & easy.

Build HTML from MIME message

P: n/a
I've got a MIME message that was originally an HTML email with embedded
images. When the email is received (to GMail) it is now in MIME format. The
HTML portion is now split out into the HTML and the images (each in a MIME
part). The MIME part for the image looks like some sort of abreviated
compressed code. Does anyone know how to extract the original HTML back out
of a MIME message?
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
John:

I am providing the cited KB article as a potential reference. It involves a
MIME filter for converting XML data to HTML. I know this is different from
your need, however, there is a project available for download which includes
source code. It is written in C++, so its value is based on your
familiarity with that language.

http://support.microsoft.com/default...b;en-us;260840

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.
"John Mark Howell" <jm*********@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP14.phx.gbl...
I've got a MIME message that was originally an HTML email with embedded
images. When the email is received (to GMail) it is now in MIME format. The
HTML portion is now split out into the HTML and the images (each in a MIME
part). The MIME part for the image looks like some sort of abreviated
compressed code. Does anyone know how to extract the original HTML back out
of a MIME message?

Nov 17 '05 #2

P: n/a
I've already started a C# MIME library but I'm having trouble with some of
the details. This may fill in the blanks. Thanks David.

"David Lloyd" <Da***@NoSpamPlease.com> wrote in message
news:wT***************@bignews1.bellsouth.net...
John:

I am providing the cited KB article as a potential reference. It involves
a
MIME filter for converting XML data to HTML. I know this is different
from
your need, however, there is a project available for download which
includes
source code. It is written in C++, so its value is based on your
familiarity with that language.

http://support.microsoft.com/default...b;en-us;260840

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com


Nov 17 '05 #3

P: n/a
Sorry David, but that was not much help. I can already parse multipart mime
messages, I just can't seem to work out the non-html and non-text mime part
bodies. For example, I might have a MIME body part that looks like:

------=_NextPart_000_0024_01C5B61A.7C4FB2D0
Content-Type: image/gif;
name="image001.gif"
Content-Transfer-Encoding: base64
Content-ID: <im**********@01C5B545.0D1F67A0>
Content-Location: image001.gif

R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=
Now, I'm trying to find out how to pull the image back out of that octet
string.
Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.