public byte[] GetImageResponse(object arg) #endif { #if !NETFX_CORE string url = (string)arg; byte[] imageAsByteArray; using (var webClient = new WebClient()) { imageAsByteArray = webClient.DownloadData(url); } return imageAsByteArray; #endif }