Click here to Skip to main content
13,833,837 members
Rate this:
Please Sign up or sign in to vote.

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 !
Updated 12-Aug-18 16:01pm
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

Rate this: bad
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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

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

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