Get an Image from a URL but it is not loaded completely
I'm trying to get an image from an URL but when I save it to a file it is half of the actual image! I have searched many sites and solutions like HttpWebRequest.BeginGetResponse because I thought it is because I must buffer the data but it did not work. I don't know which part of my code is wrong and making this problem!:( This is the code which retrieve image from URL: public static Bitmap GetImageFromUrl(string url) { string RefererUrl = string.Empty; int TimeoutMs = 22 * 1000; string requestAccept = "*/*"; string UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko