How to Download Big Files with Visual Studio 2013 / VB?

Working with Visual Studio 2013 Express Edition – Visual Basic

I am building a BOT in order to obtain automatically information from the web.

I am using the WebBrowser Object on a BOT application in order to search to the contents to download and I should like to make the download of zip and mp3 files of audiobooks.

I am trying this:

My.Computer.Network.DownloadFile(FileURL, localpath & ".mp3")

I have no problems with “jpg” but with bigger files I have no success can you help me?

Regards
Rui
RUIDEOLIVEIRAAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

quizwedgeCommented:
The default connection timeout is 100 seconds. You can increase it by setting the number of milliseconds you want. For example,
My.Computer.Network.DownloadFile(FileURL, localpath & ".mp3","", "", False, 300000, True)

Open in new window

That would set the timeout to 5 minutes.
0
RUIDEOLIVEIRAAuthor Commented:
Thanks.

It doesn't work for files with GB...
0
quizwedgeCommented:
Value is an integer. Maximum value for the timeout would be 2147483647. Does that allow it to work for GB files?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

RUIDEOLIVEIRAAuthor Commented:
The problem is not what the information related says, but how it works...

Your suggestion doesn't with hundreds of MB....

The only solution was to go via OPENFileDialog Async option...

Thanks
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
quizwedgeCommented:
Pretty sure that it would work for hundreds of MB so long as you use a higher timeout and have a fast enough connect, but glad OPENFileDialog Async is working. I also found WebClient.DownloadFileAsync (though that may be what you are using, just by a different name).
0
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.