C#webbrowser控件如何显示base 64字符串的图片 [英] How the C# webbrowser control shows the picture of the base 64 string

查看:130
本文介绍了C#webbrowser控件如何显示base 64字符串的图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个人都很好:

工具,我在收到的邮件中收到邮件接收邮件显示在webbrowser控件中,但是电子邮件中的一些图片直接嵌入到HTML电子邮件中,我看一下HTML源代码就像SRC =cid:image001.png@01D08D01.AFA38F80>单词,但webbrowser控件ser无法显示,你能告诉我如何获得webbrowser控件,根据解析出的图片,我会发现相关数据是基本的64位编码图像。请问如何解析代码,谢谢!

解决方案

我不知道你为什么要使用这种形式的URI。您可以在HTML中使用的 URI方案数据URI方案

http://en.wikipedia.org/wiki/Data_URI_scheme#HTML [ ^ ]。



另请参阅: http://en.wikipedia.org/wiki/URI_scheme [ ^ ]。



-SA


< pre lang =sql>谢谢你 你的答案。我做了 使用此表单 uris , 使用 outlook类似的功能软件发送了一封电子邮件,使用我自己的工具 接收此电子邮件,我在 webbrowser控件中看到这样的它显示HTML source 代码,可以' t显示图片,但在第三方电子邮件软件中可以看到图片显示。只是不知道他们是如何完成的。我使用一个更愚蠢的方法实现,这些图像以 关键字> 附件,我将附件下载到本地临时目录, < span class =code-keyword>然后修改webbrowser控件 source 本地路径 显示图片。这需要经常硬 read 写,更麻烦。
非常感谢 提供网站的相关技术,我上去< span class =code-keyword> to 查看文档。


感谢您的回答。我必须学习相关知识。非常感谢!


Everybody is good:
Tool, I made a POP receiving mail received mail in the webbrowser control displayed, but some pictures in email is directly embedded into HTML emails, I look at the HTML source code are like "SRC =" cid: image001.png@01D08D01.AFA38F80 ">" the words, but the webbrowser control ser to cannot be displayed, could you tell me how can I get the webbrowser control, according to parse out the pictures and I'll find the relevant data is a base 64 encoded image. Excuse me how should to parse the code, thank you!

解决方案

I have no idea why are you using this form of URI. The URI scheme you can use in HTML is the data URI scheme:
http://en.wikipedia.org/wiki/Data_URI_scheme#HTML[^].

See also: http://en.wikipedia.org/wiki/URI_scheme[^].

—SA


Thank you for your answer. I did not use this form of uris, is I use outlook similar functional software sent an email, with my own tools to receive this email, I was in the webbrowser control see such that it shows the HTML source code, and can't show the pictures, but in the third party email software can see in the picture display. Just don't know how they are done. I use a more stupid method implementation, these images are sent in the form of attachment, I download the attachment to the local temp directory, and then modify the webbrowser control the source to point to the local path to show pictures. This requires frequent hard to read and write, more troublesome.
Thank you very much for providing the relevant technology of the web site, I went up to see the document.


Thank you for the answers. I have to study related knowledge. Thank you very much!


这篇关于C#webbrowser控件如何显示base 64字符串的图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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