Discuss this help topic in SecureBlackbox Forum

TElSftpClient.CopyRemoteData

TElSftpClient     See also     


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


Copies data from a file into another one.

Declaration

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

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

[Pascal]
    function CopyRemoteData(const ReadFrom : TSBSftpFileHandle; ReadFromOffset : Int64; const WriteTo : TSBSftpFileHandle; WriteToOffset, DataLength : Int64): boolean;
    procedure CopyRemoteDataSync(const ReadFrom : TSBSftpFileHandle; ReadFromOffset : Int64; const WriteTo : TSBSftpFileHandle; WriteToOffset, DataLength : Int64);
    TSBSftpFileHandle = ByteArray { array of byte };

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

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

[Java]
    boolean 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

Return value

    True if operation was completed successfully;
    False otherwise.

Description

    Use this method to copy some data from one remote file into another.

See also:     CopyRemoteFile    

Discuss this help topic in SecureBlackbox Forum