Solved

download image from URL and save it in my PC

Posted on 2006-07-11
3
245 Views
Last Modified: 2010-04-16
how can download image from URL as http://www.abc.com/avvv.jpg

and save this image in my PC
0
Comment
Question by:flashaoy
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
BBK_ earned 500 total points
ID: 17088019
using System.net


WebClient Client = new WebClient ();
Client.DownloadFile(" http://www.abc.com/avvv.jpg", "avvv.jpg ");
0
 
LVL 1

Author Comment

by:flashaoy
ID: 17088210
how can make it to save in folder name images/  ?
0
 
LVL 3

Expert Comment

by:BBK_
ID: 17088220
Client.DownloadFile(" http://www.abc.com/avvv.jpg", "avvv.jpg ");
In this the second parameter you can specify the Foldername and the file name that you want.

EG: IF you wan to save the avvv.jpg into your "MYpicture" as "GreatPic.jpg" folder then give like this

Client.DownloadFile(" http://www.abc.com/avvv.jpg", "C:\Documents and Settings\User\My Documents\My Pictures\GreatPic.jpg ");

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question