|
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?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
|
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
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!
|
|
Rank: Member Groups: Member
Joined: 1/16/2016 Posts: 16
|
An error page is shown in a different browser.
|
|
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?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
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.
|
|
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 URLIn 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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
Thanks for the information. We see the problem now. We are working on it and will reply again when we have an update.
|
|
Rank: Member Groups: Member
Joined: 1/16/2016 Posts: 16
|
Thank you. Can you estimate a date for an update?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
Hi,
We should be able to have an update within 2 weeks.
Thanks!
|
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
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!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
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.aspxThanks!
|
|