在html doc中嵌入图像 [英] Embed image in html doc

查看:72
本文介绍了在html doc中嵌入图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要在html文档中嵌入图像,使用C#或VB代码。该文档将保存在数据库中,因此它必须没有任何文件引用。我已经研究了一天左右,找不到任何完整的东西。我想知道是否有人为此做了一步一步的过程。

We need to embed an image in an html document, in C# or VB code. The document will be saved in a database, so it must be free of any file references. I have been researching this for a day or so, and cannot find anything complete. I would like to know if anyone has a step by step process for doing this.

推荐答案

this [ ^ ]你在寻找什么?
Is this[^] what you are looking for?


那里是一种方法,通过使用base64编码,请参阅此文章: http://www.bigfastblog .com / embed-base64-encoded-images-inline-in-html [ ^ ]

但我不确定是否有任何大小限制,或者浏览器支持的覆盖范围是什么。



您还可以考虑存储mht',它们也是独立的。一个起点ó可以是这篇文章: http://mycsharpcorner.blogspot .hu / 2011/01 / create-mht-from-html-in-c.html [ ^ ]
There is a way, by using base64 encoding, see this article: http://www.bigfastblog.com/embed-base64-encoded-images-inline-in-html[^]
But I am not sure if there is any size limit, or what is the browser support coverage.

What you might also consider is storing mht''s which are also self-contained. A starting point ó could be this article: http://mycsharpcorner.blogspot.hu/2011/01/create-mht-from-html-in-c.html[^]


这篇关于在html doc中嵌入图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆