如何在不重新下载的情况下从webbrowser保存图像? [或覆盖“将图片另存为......”选项]在C#中 [英] How to save images from webbrowser without re-download ? [or override "save picture as ..." option] in C#

查看:192
本文介绍了如何在不重新下载的情况下从webbrowser保存图像? [或覆盖“将图片另存为......”选项]在C#中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何从已加载的网页浏览器组件中保存验证码图片

c#在Windows应用程序中,无需重新下载。

和我一样点击图片然后按将图片保存为...。



我试过的:



如果我尝试下载此验证码,服务器返回不同的图像!

Hi,

How can Save a Captcha Image from loaded web Browser Component
c# in windows application, witout re-download it.
Like as I Right Click on Image and press "Save picture as ...".

What I have tried:

if I try to download this captcha, server returns diffrent Image !

推荐答案

你不能。图像与标签一起发送,该标签告诉浏览器不要缓存图像文件。一旦浏览器呈现图像,它就会忘记图像文件甚至存在。
You can't. The image is sent with a tag that tells the browser not to cache the image file. Once the browser renders the image, it forgets the image file even exists.


这篇关于如何在不重新下载的情况下从webbrowser保存图像? [或覆盖“将图片另存为......”选项]在C#中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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