I have an image's URL. Is it possible to find out its size(in bytes) and dimensions without downloading the complete image?
EDIT
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "HEAD";
HttpWebResponse resp = (HttpWebResponse)(req.GetResponse());
System.Console.WriteLine(resp.ContentLength);
I have written this code. It works fine for first two time and the third time it gives WebException
i.e. "operation timed out" irrespective of the image url. Is there something that I am missing here?