OK. Thanks, but I need to keep the file as a byte array & then open it from
the next byte I think. How do I do about doing all this (code sample please)?
"Tom Shelton" wrote:
> In article <3AD665E9-02F0-4A06-9140-(E-Mail Removed)>, Crouchie1998 wrote:
> > I am using http (System.Net.HttpWebRequest) to download the file
>
> Ok... You'll want to use the HttpWebRequest.AddRange method before you
> try and resume the download... You'll look at how many bytes your
> recieved and want to start at the next byte. So say you got 50 bytes of
> a 100 byte file... you would call:
>
> ' - indicates from this position to end of data
> myWebRequest.AddRange (-51)
>
> Does that make sense? You are basically setting the HTTP Range header.
>
> --
> Tom Shelton [MVP]
>
|