Discuss this help topic in SecureBlackbox Forum


TElSimpleSFTPClient     See also     

Filter: C#/Java  VB.NET  Pascal  C++  PHP  

Copies data from a file into another one.


    void CopyRemoteData(byte[] ReadFrom, long ReadFromOffset, byte[] WriteTo, long WriteToOffset, long DataLength);

    Sub CopyRemoteData(ByVal ReadFrom As Byte(), ByVal ReadFromOffset As Long, ByVal WriteTo As Byte(), ByVal WriteToOffset As Long, ByVal DataLength As Long)

    procedure CopyRemoteData(const ReadFrom : TSBSftpFileHandle; ReadFromOffset : Int64; const WriteTo : TSBSftpFileHandle; WriteToOffset, DataLength : Int64);
    TSBSftpFileHandle = ByteArray { array of byte };

    void CopyRemoteData(const std::vector<uint8_t> &ReadFrom, int64_t ReadFromOffset, const std::vector<uint8_t> &WriteTo, int64_t WriteToOffset, int64_t DataLength);

    void CopyRemoteData(array of byte|string|NULL $ReadFrom, integer $ReadFromOffset, array of byte|string|NULL $WriteTo, integer $WriteToOffset, integer $DataLength)


  • ReadFrom - file where the data should be read from
  • ReadFromOffset - offset in the file from which the data starts
  • WriteTo - destination file
  • WriteToOffset - offset in the destination file where the data should start
  • DataLength - length of the data piece to be copied


    Use this method to copy some data from one remote file into another.
    In case of error, EElSFTPError exception containing the SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.

See also:     CopyRemoteFile    

Discuss this help topic in SecureBlackbox Forum