string httpUrl="http://pic37.nipic.com/20140113/8800276_184927469000_2.png";
int BytesToRead = 100;
WebRequest request = WebRequest.Create(new Uri(httpUrl, UriKind.Absolute));
request.Timeout = -1;
WebResponse response = request.GetResponse();
Stream responseStream = response.GetResponseStream();
BinaryReader reader = new BinaryReader(responseStream);
MemoryStream memoryStream = new MemoryStream();
byte[] bytebuffer = new byte[BytesToRead];
int bytesRead = reader.Read(bytebuffer, 0, BytesToRead);
while (bytesRead > 0)
{
memoryStream.Write(bytebuffer, 0, bytesRead);
bytesRead = reader.Read(bytebuffer, 0, BytesToRead);
}
var image = Image.FromStream(memoryStream);
var length = image.Width;
var height = image.Height;