Xbasic
INET::FTPSendBinaryData Method
Syntax
.SendBinaryData as L (Data as B, TargetFile as C)
Arguments
- DataBinary
The binary data to send.
- TargetFileCharacter
The target file name.
Returns
- resultLogical
Returns .t. if the operation succeed. Otherwise, returns .f.. If an error occurred, the INET::FTP CallResult property will contain more information.
Description
Send a buffer of binary data to the target file specified.
Example
dim data as b = char_to_blob("Data")
dim ftp as INET::FTP
ftp.UserName = "Fred"
ftp.Password = "Secret"
ftp.EnableSSL = .t.
ftp.Host = "ftp.myserver.com"
ftp.UsePassive = .t.
if ftp.SendBinaryData(data,"target.csv") <> .t.
' error
msg = ftp.callResult.error
...
end if