Using WebClient class of .Net Framework, we can download file from ftp server in the following way -
WebClient request = new WebClient();
request.Credentials = new NetworkCredential(userName, password);
return request.DownloadData(path);
Using WebClient class of .Net Framework, we can download file from ftp server in the following way -
WebClient request = new WebClient();
request.Credentials = new NetworkCredential(userName, password);
return request.DownloadData(path);