public void DownloadFile(string url) { System.Net.WebClient wInstance = new System.Net.WebClient(); string tempPath = System.IO.Path.GetTempPath(); string fileName = url.Split('/')[ url.Split('/').Length-1]; string savePath = tempPath + fileName; wInstance.DownloadFile(url, savePath); }