It's not documented in the MSDN. The Read method is supposed to return the number of bytes read from the stream, or 0 if there's no more data.
Here's what I'm currently doing..
// reader is a Stream
using(reader = new WebClient().OpenRead(url))
{
int read = 1;
byte[] buff = new byte[4096]...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.