R
Rymfax
Greetings,
I have an app that uses HttpWebRequest to download a rather large file
(100 MB). I have a while loop set up so that it reads 4096 bytes at a
time from the ResponseStream() until it reads zero bytes. The odd
thing is that for some of the people using my app, the Read() function
from the ResponseStream() will return zero bytes even though it has
not read the enter ResponseStream(). I know it hasn't read the entire
stream because I do a ResponseStream().ContentLength and get the size
of the stream (and record it) before I start reading data, then I also
record how many bytes I've read.
Any idea why this would be happening? And any suggestions on how to
get around?
I have an app that uses HttpWebRequest to download a rather large file
(100 MB). I have a while loop set up so that it reads 4096 bytes at a
time from the ResponseStream() until it reads zero bytes. The odd
thing is that for some of the people using my app, the Read() function
from the ResponseStream() will return zero bytes even though it has
not read the enter ResponseStream(). I know it hasn't read the entire
stream because I do a ResponseStream().ContentLength and get the size
of the stream (and record it) before I start reading data, then I also
record how many bytes I've read.
Any idea why this would be happening? And any suggestions on how to
get around?