Image to byte array from url

I have a hyperlink with an image, I need to read / load an image from this hyperlink and assign it to a byte array (byte []) in C #

Thank.

+46
c #
Jan 05 2018-11-11T00:
source share
1 answer

WebClient.DownloadData is the easiest way.

var webClient = new WebClient(); byte[] imageBytes = webClient.DownloadData("http://www.google.com/images/logos/ps_logo2.png"); 
+106
Jan 05 2018-11-11T00:
source share



All Articles