Welcome Guest Search | Active Topics | Sign In | Register

How to get the resource on webpages? Options
clorest
Posted: Friday, October 9, 2015 10:04:38 AM
Rank: Advanced Member
Groups: Member

Joined: 6/24/2015
Posts: 39
I want to get the image's size on the page. The image's response header has the property transfer-encoding, so i can't get the size with content-length property. I have added the ResponseEventHandler event to intercept the request, but the Response's OutputSteram property
throws a exception so that i cant get this stream. Now, i want to download this image and get the size by System.IO. Can you tell me how to download a picture without mouse, just by program.
ps: i can get the img's href
eo_support
Posted: Friday, October 9, 2015 10:26:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
clorest wrote:
Now, i want to download this image and get the size by System.IO. Can you tell me how to download a picture without mouse, just by program.
ps: i can get the img's href


You can try to search to see if that can be done with JavaScript. Once you have the JavaScript code, you can use WebView.EvalScript to run the script and get the result.

You can also just download the image straight without going through the browser engine as well. You can search online and you should be able to find plenty of information about this. This is a generic programming question that does not have anything to do with our product. So it would be beyond the scope of our support.

Thanks!


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.