System.Drawing.Image from URL.
C#
2
Posts
2
Posters
0
Views
1
Watching
-
I'm trying to create a System.Drawing.Image from a user supplied URL. My code is as follows.. I keep getting a "(407) Proxy Authentication Required" Error.
WebClient imgClient = new WebClient(); String imgURL ="http://www.blah.com/image.jpg"; byte\[\] imageByteArray = imgClient.DownloadData(imgURL); MemoryStream ms = new MemoryStream(imageByteArray); System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
-
I'm trying to create a System.Drawing.Image from a user supplied URL. My code is as follows.. I keep getting a "(407) Proxy Authentication Required" Error.
WebClient imgClient = new WebClient(); String imgURL ="http://www.blah.com/image.jpg"; byte\[\] imageByteArray = imgClient.DownloadData(imgURL); MemoryStream ms = new MemoryStream(imageByteArray); System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
I think this explains it (although it relates to RSS rather than images). http://www.digcode.com/default.aspx?page=ed51cde3-d979-4daf-afae-fa6192562ea9&article=e5e70eb2-d4cf-496e-9bb4-2b9833f9adcd[^]
Me: Can you see the "up" arrow? User:Errr...ummm....no. Me: Can you see an arrow that points upwards? User: Oh yes, I see it now! -Excerpt from a support call taken by me, 08/31/2007