this code snippet read the respone fo a web request through binary reader
private byte[] getByte(string URL)
{
HttpWebRequest wrGETURL = (HttpWebRequest)WebRequest.Create(URL);
System.Net.HttpWebResponse webresponse = (HttpWebResponse)wrGETURL.GetResponse();
string ct = webresponse.ContentType;
Stream objStream = webresponse.GetResponseStream();
BinaryReader breader = new BinaryReader(objStream);
byte[] buffer = breader .ReadBytes((int)webresponse.ContentLength);
return buffer;
}