BeardedManStudios.Network.HTTP.GetImageResponse C# (CSharp) Method

GetImageResponse() public method

public GetImageResponse ( object arg ) : byte[]
arg object
return byte[]
		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
		}

Same methods

HTTP::GetImageResponse ( byte parameters ) : void