Uploading binary files

Top  Previous  Next

To upload binary files you must set the TransferMode property to binary (the default) using the TransferModes enumeration. All files with relative paths will be uploaded from your current local directory.

 

Example

 

[C#]

// set transfer mode to binary

myFtp.TransferMode = TransferModes.Binary;

// upload all JPG files in current local directory

myFtp.MUpload("*.jpg");

 

 

[Visual Basic]

' set transfer mode to binary

myFtp.TransferMode = TransferModes.Binary

' upload all JPG files in current local directory

myFtp.MUpload("*.jpg")

 

 

See also

 

Setting your local directory