Sunday, January 9, 2011

Download file from Internet in Windows Application


           System.Net.WebClient wc = new System.Net.WebClient();
            wc.DownloadFile("http://www.xyz.com/abc.mp3""hello.mp3");

            // first parameter is the path of file which is on the internet
            // second parameter is the filename which is used to save in local system.

No comments:

Post a Comment