Easiest way to save image from an URL in ASP.NET

  • Thread starter Thread starter Hrvoje Vrbanc
  • Start date Start date
H

Hrvoje Vrbanc

I would like to know the most efficient way to copy an image from an
Internet URL to the local hard disk by means of using an ASP.NET page.

So, I would like to click the button on the ASP.NET page and thus to save a
copy of a picure at let's say http://www.blabla.com/pic.jpg to predefined
location on my hard disk.

Thanks in advance,
Hrvoje
 
I would like to know the most efficient way to copy an image from an
Internet URL to the local hard disk by means of using an ASP.NET page.

Open the page in a browser. The image will be in your Temporary Internet
Files folder.

Of course, if you want to find it more easily, right-click the image, and
choose "Save Image As..." from the context menu.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
 
my.Computer.Network.DownloadFile (...)
So when the user clicks an image you should send the url directly.
Let the server download the image then.
 
Hello Kevin!

I was in fact referring to an automated process for saving a lot of images
(named logically on remote server so that the names could be created
programatically) under names also created programatically.....

Hrvoje
 
That solved the problem, thanks!
Hrvoje

Edwin Knoppert said:
my.Computer.Network.DownloadFile (...)
So when the user clicks an image you should send the url directly.
Let the server download the image then.
 
Back
Top