I have a web URL for the image. For example \"http://testsite.com/web/abc.jpg\". I want copy that URL in my local folder in \"c:\\images\\\"; and also when I copy that file into
string path = "~/image/"; string picture = "Your picture name with extention"; path = Path.Combine(Server.MapPath(path), picture); using (WebClient wc = new WebClient()) { wc.DownloadFile("http://testsite.com/web/abc.jpg", path); }
Its works for me