This worked for a txt/zip file download but if i want to save/download video/audio file.How to move ?
//Two textboxes used here,
//1.to take URL
//2.to get saving location on drive
private void downloadbtn_Click(object sender, EventArgs e)
{
WebClient myWebClient = new WebClient();
string path;
path = this.savePath.Text;
Uri tmp = new Uri(this.downloadURL.Text);
string EndPathFileName = tmp.Segments.Last();
path = path + @"\" + EndPathFileName ;
myWebClient.DownloadFile(this.downloadURL.Text, path );
}
I tried http://freewavesamples.com/roland-gr1-orchestra-hit-c5.wav which downloaded something but unable to play it