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?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

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.
RUIDEOLIVEIRAAuthor Commented:

It doesn't work for files with GB...
Value is an integer. Maximum value for the timeout would be 2147483647. Does that allow it to work for GB files?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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...


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
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).
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.
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.