tags:

views:

31

answers:

2

Hello, We are storing our images at Amazon S3. Let's say the location is http://media.sitename.com/folder1/image1.jpg.

I want to copy this file and store it in our server. Is it possible to do this using C#. I am using asp.net 4.0.

Please help. Thanks.

+2  A: 

Download Image using c#

Download image from Web

Just Google/Bing "Download Image from server using c#" and you will get many more links.

Shoban
+1 for good links, and for the Dexter's Lab icon :)
EJC
+1  A: 

Here you go:

System.Net.WebClient client = new WebClient();
client.DownloadFile(imageURL, localPathname);

where imageURL is http://media.sitename.com/folder1/image1.jpg and localPathname is something like C:\my\images\directory\cachedImage.jpg

RichieHindle