We help IT Professionals succeed at work.

Inline images in html

Attached is an email file that contains an inline image encoded in base 64.  I would like to know what I would need to do to save the html content and related image file so they would render in a standard web browser?  HTMMAIL-121222.txt

Thanks for your help.

Daniel
Comment
Watch Question

RobOwner (Aidellio)
Most Valuable Expert 2015

Commented:
http://www.askapache.com/online-tools/base64-image-converter/ to decide and download the image

copy and paste the base64 section into the indicated area and click decode.

there is also an html section to the email. copy and paste this to a blank text file and save as index.html
Owner (Aidellio)
Most Valuable Expert 2015
Commented:
so change [b] cid:inlineImage0[/b] to be the filename of your saved image.  you'll also notice I've removed all  "=3D" with = and all "=3B" with semicolons ;

[code]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>&nbsp;this is where the images will be<BR>&nbsp;<BR>&nbsp;<BR><div id="inlineImage0" style="display: inline-block;"><script type="jsv#687_"></script>    <span contenteditable="true">&nbsp;</span>    <div class="inlineImage" style="display: inline-block;" contenteditable="false" unselectable="on" initheight="737" initwidth="1001"><img width="1001" height="737" src="image-name.jpg"></div>    <span contenteditable="true">&nbsp;</span><script type="jsv/687_"></script></div>&nbsp;<BR>                                     </div></body>
</html>
[/code]

Author

Commented:
Works great!  Just what I was looking for.