Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.FtpDLX
- Properties
- Authentication
- Blocking
- BufferSize
- Certificate
- Compression
- DirFormat
- DirItems
- Encryption
- Hostname
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalPath
- Login
- MaxTransferRate
- Passive
- Password
- Port
- PreserveDates
- PrivateKey
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- PublicKeyOpenSSH
- PublicKeySSH
- RemotePath
- Resume
- SecureMethod
- SmartGet
- SmartPut
- State
- StrictHost
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Methods
- Events
- Properties
- WeOnlyDo.Client.DirItemsCollection
- WeOnlyDo.Client.DirItem
- How to get support?
TransferMode property
Determines if transfers are Binary or AscII.
Type
TransferModes enumerationSyntax
- C#
- VB.NET
TransferModes TransferMode {get; set; };
Property TransferMode As TransferModes
Remarks
TransferMode property is a client-side add-on (by default SFTP protocol does not make a difference between ASCII and BINARY transfer modes, but FTP does) property. When set to Binary, wodFtpDLX.NET will not interfere with the file content sent or received from the server. However, if set to AscII then wodFtpDLX.NET will perform CRLF -> LF translation before sending a file, and LF -> CRLF translation when receiving a file. As a result, ASCII files should be readable both on remote and local side.This property makes sense only if remote system is UNIX or similar OS. If server is also Windows based, you should make no translation because both systems use same sequences to mark EOL (end-of-line). However, UNIX systems don't use CRLF (carriage-return-line-feed) but only LF (line-feed).
Please note that when receiving a file using AscII mode, Progress event will show false information regarding file size/position. It will show information which is valid for a file on remote server, but when downloaded it can be much larger (depending of number of LF's found inside).
Resume property can cause trouble when used in AscII mode because most probably resume will occur on different places on local/remote side.