Back to product page

RemoteWrite method


Writes to remote file.

Type

None

Syntax

  • Basic
object.RemoteWrite Data, RemotePosLo, RemotePosHi
The RemoteWrite(object,Data,RemotePosLo,RemotePosHi) syntax has these parts:
objectAn expression evaluating to an object of type wodSFTP.
DataVariant value. Holds data to be written in remote file.
RemotePosLoA Long value. Low 32 bit of position in the remote file where write occurs.
RemotePosHiA Long value. High 32 bit of position in the remote file where write occurs (usually 0).

Remarks

The RemoteWrite method write Data to specific position in remote file, opened with RemoteOpen method. When data is fully written, Done event will be fired where you can write more data, close the file etc.. During the transfer, Progress event WILL NOT be fired.

Data argument can contain String or Byte Array (SAFEARRAY[VT_UI1] in VC++).

After you finish writing all the data, don't forget to call RemoteClose. You can not call other methods until RemoteClose is called (for example, you cannot call PutFile).

Code sample

  • Basic

Platforms

Windows