SFTP Object
 
Syntax
 
SFTP.ReadFileBd(handle As String, ByVal numBytes As Long, bd As ChilkatBinData) As Long
 
Description
Reads file data from a remote file on the SSH server. The handle is a file handle returned by the OpenFile method. The numBytes is the maximum number of bytes to read. If the end-of-file is reached prior to reading the number of requested bytes, then fewer bytes may be returned. The received bytes are appended to the contents of bd.
 
To read an entire file, one may call ReadFileBd repeatedly until Eof(handle) returns 1.
 
See Also