Downloading binary files

Top  Previous  Next

To download binary files you must set the TransferMode property to binary (the default) using the TransferModes enumeration. All files will be downloaded relative to your current remote directory.

 

Example

 

[C#]

// set transfer mode to binary

myFtp.TransferMode = TransferModes.Binary;

// download all JPG files in current remote directory

myFtp.MDownload("*.jpg");

 

 

[Visual Basic]

' set transfer mode to binary

myFtp.TransferMode = TransferModes.Binary

' download all JPG files in current remote directory

myFtp.MDownload("*.jpg")

 

 

See also

 

Setting your remote directory