Rebex FTP for .NET

Ftp.BeginPutFile Method (Stream, String, Int64, Int64, AsyncCallback, Object)

Uploads the content of the data stream to the file on the server.

public IAsyncResult BeginPutFile(
   Stream sourceStream,
   string remotePath,
   long remoteOffset,
   long length,
   AsyncCallback callback,
   object state
);

Parameters

sourceStream
The source data stream.
remotePath
The path of the remote file. This cannot be a directory.
remoteOffset
The starting offset of the remote file.
length
Number of bytes to transfer or -1 to transfer the whole stream.
callback
An optional asynchronous callback to be called when the operation is complete.
state
A user-provided object that identifies this particular asynchronous operation.

Return Value

An IAsyncResult that references the asynchronous operation.

Remarks

Represents FTP STOR command.

See Also

Ftp Class | Rebex.Net Namespace | Ftp.BeginPutFile Overload List