Solved

download image from URL and save it in my PC

Posted on 2006-07-11
3
235 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
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…

786 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