Stream.FTP
Stream.FTP
Stream.FTP.DownloadFile
string DownloadFile(string Address, string UserName, string Password, string LocalFilePath)
Downloads the resource with the specified URI to a local file.
Parameters
|
Parameter |
Description |
|
Address |
The URI of the resource to recieve the file |
|
UserName |
User name |
|
Password |
Password |
|
LocalFilePath |
Local file path |
Returns
string
Example
var result = Stream.FTP.DownloadFile("Address", "UserName", "Password", "LocalFilePath");
Stream.FTP.UploadFile
string UploadFile(string Address, string UserName, string Password, string FilePath)
Uploads a file to specified address.
Parameters
|
Parameter |
Description |
|
|
URIAddress The URI of the resource to recieve the file |
|
UserName |
User name |
|
Password |
Password |
|
FilePath |
The file to send to the resource |
Returns
string
Example
var result = Stream.FTP.UploadFile("Address", "UserName", "Password", "FilePath");