Solved

download image from URL and save it in my PC

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now