Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. System.Drawing.Image from URL.

System.Drawing.Image from URL.

Scheduled Pinned Locked Moved C#
comgraphicssecurityhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dio22
    wrote on last edited by
    #1

    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);
    
    M 1 Reply Last reply
    0
    • D Dio22

      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);
      
      M Offline
      M Offline
      martin_hughes
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups