internal static byte[] DownloadBytesFromUrl(string url) { byte[] bytes; using (WebClient client = new WebClient()) { AddWebClientHeaders(client, url); bytes = client.DownloadData(url); } return bytes; }