Discuss this help topic in SecureBlackbox Forum

TElSftpStream.Write

TElSftpStream     See also     


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


Writes a block of bytes to the stream.

Declaration

[C#/Java]
    void Write(byte[] Buffer, int Offset, int Count);

[VB.NET]
    Sub Write(ByVal Buffer As Byte(), ByVal Offset As Integer, ByVal Count As Integer)

[Pascal]
    function Write(const Buffer; Count : Longint) : Longint;

[C++]
    int32_t Write(const void * Buffer, int32_t Count);

[PHP]
    integer Write(TSBPointer|array of byte|string|NULL $Buffer, integer $Count)

Parameters

  • Buffer - buffer containing the data to be written.
  • Offset - the byte offset of the data to be written in the Buffer.
  • Count - the maximum number of bytes to write.

Return value

    returns the total number of bytes that were written.

Description

    Call this method to write data to the SFTP stream. Use CanWrite property to check if the current stream supports writing.

See also:     CanWrite     Read    

Discuss this help topic in SecureBlackbox Forum