Writes to remote file.
object.RemoteWrite Data, RemotePosLo,
The RemoteWrite Method syntax has these parts:
evaluating to an object of type wodSFTP.
||Variant value. Holds data to
be written in remote file.
||A Long value. Low 32 bit of
position in the remote file where write occurs.
||A Long value. High 32 bit of
position in the remote file where write occurs (usually 0).
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
event WILL NOT be fired.
Data argument can contain String or Byte Array (SAFEARRAY[VT_UI1]
You can, for example, write data like this:
- Dim sftp1 As New wodSFTPCom
sftp1.HostName = "x.y.z"
sftp1.Login = "xyz"
sftp1.Password = "abc"
sftp1.Blocking = True
sftp1.RemoteOpen "/tmp/somefile", True
sftp1.RemoteWrite "this is a test", 0, 0
sftp1.RemoteWrite "another test", 10, 0
After you finish writing all the data, don't forget to call
can not call other methods until RemoteClose is called (for example,
you cannot call PutFile).