[英]Vb.net How to get image from webbrowser to picturebox like this?
I'm trying to get a image from webbrowser to imagebox.我正在尝试从 webbrowser 获取图像到 imagebox。
İmage link likes this图片链接喜欢这个
<div id="aazone.OutputDiv" name="aazone.OutputDiv" class="noScrollbar">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgPI0/FTlWfjZ5Dnk+dJ
eAElFTkSuQmCC" style="border:1px solid #999999;"></div>
You have the Base64 representation in the src= attribute of the element, so you can just split that out and get the image bytes.您在元素的 src= 属性中有 Base64 表示,因此您可以将其拆分并获取图像字节。 This is essentially answered in this post:这基本上在这篇文章中得到了回答:
converting a base 64 string to an image and saving it 将 base 64 字符串转换为图像并保存
All you need to do is some string work before hand to get your encoded png string.您需要做的就是事先进行一些字符串工作以获取编码的 png 字符串。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.