Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.CopyRemoteData

TElSimpleSFTPClient     See also     


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


Copies data from a file into another one.

Declaration

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

[VB.NET]
    Sub CopyRemoteData(ByVal ReadFrom As Byte(), ByVal ReadFromOffset As Long, ByVal WriteTo As Byte(), ByVal WriteToOffset As Long, ByVal DataLength As Long)

[Pascal]
    procedure CopyRemoteData(const ReadFrom : TSBSftpFileHandle; ReadFromOffset : Int64; const WriteTo : TSBSftpFileHandle; WriteToOffset, DataLength : Int64);

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

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

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

Parameters

  • 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

Description

    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