Re: downloading a single file using multiple threads
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Wed, 28 Mar 2007 11:30:27 +0200
<keerthyragavendran@xxxxxxxxx> wrote in message news:1175057072.261471.167010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi
i'm downloading a single file using multiple threads...
how can i specify a particular range of bytes alone from a single
large file... for example say if i need only bytes ranging from
500000 to 3200000 of a file whose size is say 20MB...
how do i request a download which starts directly at 500000th byte...
thank u
cheers
Simple answer: you can't *download* a file in chunks, unless you implement a client/server protocol for this.
If by *download* you mean *reading* a file from a "fileserver" and saving a copy to the local filesystem, then you can use System.IO namespace classes
The question is - what makes you think you need multiple threads to *download* a file? If you think you can speed-up the download by doing this, then you are wrong. The bottleneck will always be the network, so if you download the file in one chunk, you'll get the maximum throughput, introducing multiple threads will actually slowdown the whole process.
Willy.
.
- Follow-Ups:
- Re: downloading a single file using multiple threads
- From: Jon Skeet [C# MVP]
- Re: downloading a single file using multiple threads
- References:
- downloading a single file using multiple threads
- From: keerthyragavendran
- downloading a single file using multiple threads
- Prev by Date: Re: ado connection fail on Vista
- Next by Date: How to create reports based on TFS Source Control content?
- Previous by thread: Re: downloading a single file using multiple threads
- Next by thread: Re: downloading a single file using multiple threads
- Index(es):
Relevant Pages
|