access to image from chromium

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

access to image from chromium

Postby dcf » Sat Sep 17, 2016 7:56 am

Hello, please help me get access to captcha image

procedure TForm1.croBeforeResourceLoad(Sender: TObject;
const browser: ICefBrowser; const request: ICefRequest;
var redirectUrl: ustring; var resourceStream: ICefStreamReader;
const response: ICefResponse; loadFlags: Integer; out Result: Boolean);
begin
if request.geturl = Captcha then begin
///// need somehow to attach download handler to this image, then access to image data
end;
end;
dcf
Newbie
 
Posts: 2
Joined: Sat Sep 17, 2016 7:41 am

Re: access to image from chromium

Postby magreenblatt » Sat Sep 17, 2016 8:10 am

What are you trying to accomplish?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: access to image from chromium

Postby dcf » Sat Sep 17, 2016 8:23 am

I need to get an access to captcha pixels.

My current solution is awful: as page is loaded, i'm accessing to browser window dc and copy its part with captcha to bitmap. So it is not working when window is minimized.

Another possible soulion to copy image pixels via javascript to delphi doesn't look better.
dcf
Newbie
 
Posts: 2
Joined: Sat Sep 17, 2016 7:41 am

Re: access to image from chromium

Postby magreenblatt » Sat Sep 17, 2016 9:12 am

dcf wrote:I need to get an access to captcha pixels

For what purpose?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 97 guests