Uploads the content of the data stream to the file on the server.
Namespace:
Rebex.Net
Assembly:
Rebex.Ftp (in Rebex.Ftp.dll)
Syntax
Visual Basic |
---|
Public Function PutFile ( _ sourceStream As Stream, _ remotePath As String, _ remoteOffset As Long, _ length As Long _ ) As Long |
C# |
---|
public long PutFile( Stream sourceStream, string remotePath, long remoteOffset, long length ) |
Parameters
- sourceStream
- Type: System.IO..::..Stream
The source data stream.
- remotePath
- Type: System..::..String
The path of the remote file. This cannot be a directory.
- remoteOffset
- Type: System..::..Int64
The starting offset of the remote file.
- length
- Type: System..::..Int64
Number of bytes to transfer or -1 to transfer the whole stream.
Return Value
Number of bytes transferred.Implements
IFtp..::..PutFile(Stream, String, Int64, Int64)Remarks
Represents FTP STOR command.