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. Web Development
  3. ASP.NET
  4. Downloading an image from URI

Downloading an image from URI

Scheduled Pinned Locked Moved ASP.NET
questioncsharpcomhelp
5 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.
  • N Offline
    N Offline
    Nicejith
    wrote on last edited by
    #1

    hi all, I just want to know how can i download an image from an URI specified.. please check it using this link. http://a1472.g.akamaitech.net/f/1472/124/4h/img.ebags.com/is/image/im1/59011\_1\_1?&op\_usm=.5,1,0,1&hei=249&wid=249 Please help me in this matter ASAP.. Thanx in advance.. Nicejith

    G 1 Reply Last reply
    0
    • N Nicejith

      hi all, I just want to know how can i download an image from an URI specified.. please check it using this link. http://a1472.g.akamaitech.net/f/1472/124/4h/img.ebags.com/is/image/im1/59011\_1\_1?&op\_usm=.5,1,0,1&hei=249&wid=249 Please help me in this matter ASAP.. Thanx in advance.. Nicejith

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Nice boot. :) What is it that you are trying to do?

      --- b { font-weight: normal; }

      N 1 Reply Last reply
      0
      • G Guffa

        Nice boot. :) What is it that you are trying to do?

        --- b { font-weight: normal; }

        N Offline
        N Offline
        Nicejith
        wrote on last edited by
        #3

        I just want to download the image shown in that URI and to save it in a folder in the server. I can download other images given like www.abcd.com/xyz/image1.jpg. But when i try to download the image in the given url there occurs an error- "Uri formats are not supported". Now i'm using the code format as follows wc= new WebClient(); wc.DownloadFile(givenurl,wheretosave); Please help me to solve this problem.. Regards Nicejith

        G 1 Reply Last reply
        0
        • N Nicejith

          I just want to download the image shown in that URI and to save it in a folder in the server. I can download other images given like www.abcd.com/xyz/image1.jpg. But when i try to download the image in the given url there occurs an error- "Uri formats are not supported". Now i'm using the code format as follows wc= new WebClient(); wc.DownloadFile(givenurl,wheretosave); Please help me to solve this problem.. Regards Nicejith

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          What is the exact error message? I tried your code with the url you gave in the original post, and it works just fine.

          --- b { font-weight: normal; }

          N 1 Reply Last reply
          0
          • G Guffa

            What is the exact error message? I tried your code with the url you gave in the original post, and it works just fine.

            --- b { font-weight: normal; }

            N Offline
            N Offline
            Nicejith
            wrote on last edited by
            #5

            Hi The actual problem was with the url i supplied.The problem occured when i tried to upload bulk product details from a file to the application's database.The url contained blank spaces, i think. now i gave code for trimming and removing some extra parameters from the url in my application. Now it works smoothly..Thanks for the efforts you made.. Regards Nicejith

            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