Welcome Guest Search | Active Topics | Sign In | Register

Download image Options
tmigh
Posted: Wednesday, October 4, 2017 2:26:12 PM
Rank: Member
Groups: Member

Joined: 1/16/2016
Posts: 16
I have a http link to an image file, and I would like to download it using EO.Webbrowser with VB.NET.
I don't need any user invention, the file should just be saved on my disk.

I didn't find any sample on how to do that.

Can anybody tell me or point me to a doc about it?
eo_support
Posted: Thursday, October 5, 2017 7:48:31 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
tmigh
Posted: Friday, October 6, 2017 5:54:45 AM
Rank: Member
Groups: Member

Joined: 1/16/2016
Posts: 16
This generally works fine, but when I try to download a URL that doesn't exist, the function takes a very long time to return, around 1 minute.

Is there a way to solve this problem?
I would like the function to return quickly.



eo_support
Posted: Friday, October 6, 2017 5:42:48 PM
Rank: Administration
Groups: Administration

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

You can try to use a regular browser to load the same Url and see if you receive an error page quickly. If that also takes a long time, then there is no way for EO.WebBrowser to return quickly either. A lot of factors can affect the time. For example, if the web server is not running at all, the network layer must wait long enough in case the server is running, but just takes a while to respond. Or if the server is running, but is busy responding, then the network layer will wait as well. In both of these cases the only option for the browser engine is to wait until a time out is reached.

Thanks!
tmigh
Posted: Saturday, October 7, 2017 5:38:41 PM
Rank: Member
Groups: Member

Joined: 1/16/2016
Posts: 16
An error page is shown in a different browser.
tmigh
Posted: Wednesday, October 11, 2017 5:13:58 PM
Rank: Member
Groups: Member

Joined: 1/16/2016
Posts: 16
May I bring this to attention again?
In another browser, an error page is shown.
EO.WebBrowser instead tries to download the image for 1 or 2 minutes or - in one case - doesn't return at all.
Is there a way to define a download timeout or similar to stop this from happening?

Or can I cancel the download if a timeout occurs?
eo_support
Posted: Wednesday, October 11, 2017 5:25:32 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
You can try to use a network traffic monitor to check the network traffic to see if you can find out the difference. Such issues are almost always caused by other factors on your system and it is not possible to be addressed on the browser engine side. For example, the other browser you are trying might have a proxy server properly configured while EO.WebBrowser does not. The browser engine will always return as soon as it reaches a definite answer about whether the resource is available or not. When it can not reach a definite answer quickly, it's because something outside of the browser engine is holding it up.
tmigh
Posted: Wednesday, October 11, 2017 5:39:29 PM
Rank: Member
Groups: Member

Joined: 1/16/2016
Posts: 16
Perhaps I should be more specific.
This is the URL that fails for me: Failing URL

In Firefox the message "Couldn't show image because it contains errors." occurs, and Chrome shows a black page.

EO.WebBrowser also handles this nicely with a white background, but I don't see any way to make the failing Download return quickly.

The above URL doesn't return at all for me when I try to download it.
eo_support
Posted: Thursday, October 12, 2017 8:07:47 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Thanks for the information. We see the problem now. We are working on it and will reply again when we have an update.
tmigh
Posted: Thursday, October 12, 2017 10:13:47 AM
Rank: Member
Groups: Member

Joined: 1/16/2016
Posts: 16
Thank you. Can you estimate a date for an update?
eo_support
Posted: Thursday, October 12, 2017 12:41:13 PM
Rank: Administration
Groups: Administration

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

We should be able to have an update within 2 weeks.

Thanks!
tmigh
Posted: Thursday, October 12, 2017 1:08:29 PM
Rank: Member
Groups: Member

Joined: 1/16/2016
Posts: 16
Would it be possible to get a pre-release in private much earlier?
I'm heavily depending on it.
eo_support
Posted: Monday, October 16, 2017 9:08:11 AM
Rank: Administration
Groups: Administration

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

We are still working on this issue and still do not have a fix yet. Once we have the fix we will see what we can do to get the fix to you sooner.

Thanks!
eo_support
Posted: Monday, October 23, 2017 9:19:43 AM
Rank: Administration
Groups: Administration

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

This is just to let you know that we have posted a new build that should address this issue. In the new build the Download method should return promptly when the resource has problems. Additionally, we have added WebView.DownloadWithResult method to allow you to examine the download error code in case it fails:

https://www.essentialobjects.com/doc/eo.webbrowser.webview.downloadwithresult.aspx

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.