简体   繁体   中英

How to embed image inside HTML (not using LinkedResource or CDO)

Here is situation: I want to create HTML document with embeded image something like this:

<html>
 <head>
 </head>
 <body>
  <img src="?" />
 </body>
</html>

Where "?" could somehow point to embeded image data. Maybe if javascript could decode base64 string generated by .net it could get me closer to my goal... This document is generated on the fly and submited to document system. So I can not use any external link to the image using LinkedResource.

You should check out the MHTML format. It is used to combine HTML with embedded resources.

http://en.wikipedia.org/wiki/MHTML

Make sure to take a look at the browsers supporting the format.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM