-
Jun 8th, 2011, 02:52 PM
#1
Thread Starter
New Member
How to stop a download(not cancel) and then contue it ?
Hello guys,
Im currently working on my downloader and also have a few things, but i need a code which can stop the download and then continue it again. Perhaps it will be also possible when you stop the Backgroundworker, because he controls the whole download action ?
If you need my Form Code to help me, I will post it
Last edited by Flow96; Jun 8th, 2011 at 03:01 PM.
-
Jun 8th, 2011, 03:25 PM
#2
Re: How to stop a download(not cancel) and then contue it ?
First of all, the site that you are downloading from must support pausing and resuming. How do you check that? You need to see if the server sends a Accept-Ranges: bytes header.
How do you resume? Well if the server supports ranges then when you create the request you skip the amount of bytes you've downloaded with the AddRange method.
Here are a couple useful links to get you started:
http://stackoverflow.com/questions/1...ttpwebresponse
http://www.codeproject.com/KB/vb/FileDownloader.aspx
-
Jun 9th, 2011, 10:59 AM
#3
Thread Starter
New Member
Re: How to stop a download(not cancel) and then contue it ?
Thank you for the links, but its not so easy for me to understand it because im a beginner and the tutorial is in english , but I will give it a try
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|