Click here to Skip to main content
15,908,013 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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 !
Posted
Updated 12-Aug-18 15:01pm
Comments
Richard MacCutchan 12-Aug-18 12:45pm    
The whole point about a captcha is that it is dynamically generated by the server. This is to stop hackers capturing the image and trying to use it in their spam messages.
Amir Hosein Nasr 13-Aug-18 5:43am    
but I can right click on image and save it. not any way to save it ?

1 solution

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.
 
Share this answer
 
Comments
Amir Hosein Nasr 13-Aug-18 0:38am    
but why I can right click on image and save it.
Dave Kreskowiak 13-Aug-18 8:20am    
The image is still in memory (it does have to be rendered whenever called upon). There's just no cached file for it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900