Click here to Skip to main content
13,665,440 members
Rate this:
 
Please Sign up or sign in to vote.
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 12-Aug-18 6:37am
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 5 days ago
   
but I can right click on image and save it. not any way to save it ?

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Amir Hosein Nasr 13-Aug-18 0:38am
   
but why I can right click on image and save it.
Dave Kreskowiak 5 days ago
   
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.180810.1 | Last Updated 12 Aug 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100