Discuss this help topic in SecureBlackbox Forum

TElSftpStream.Write

TElSftpStream     See also     


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


Writes a block of bytes to the stream.

Declaration

[C#]
    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)

[Java]
    void write(byte[] Buffer, int Offset, int 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