Welcome Guest Search | Active Topics | Sign In | Register

How to save image from html in WebView? Options
rainstuff
Posted: Tuesday, March 21, 2017 2:08:24 PM
Rank: Advanced Member
Groups: Member

Joined: 9/20/2016
Posts: 72
I load the site to WebView. While the site is loading, it loads all graphic data. How can I save these images to my stream? Some of them I can't load again by there 'src' property, because there contents will change.
I tried to use custom ResourceHandler, but I don't understand how I can load html to WebView correctly and, in the same time, save all images to my stream or file.
Maybe it is possible to add event to WebView's resource handler like "ProcessRequest", but when request is done and response data is filled?
eo_support
Posted: Wednesday, March 22, 2017 8:52:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

There is no way for you to intercept AFTER the loader. You can intercept BEFORE the loader with your own custom resource handler so that you can give the loader what you have instead of letting the loader loads it. In your case you need it the other way around --- you need the loader give you what the loader has. I do not believe there is any way to do that. Sorry about it.

Thanks!
rainstuff
Posted: Thursday, March 23, 2017 3:07:42 AM
Rank: Advanced Member
Groups: Member

Joined: 9/20/2016
Posts: 72
Ok, thanks for the answer


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.