Put a stream of data onto the FTP server in the current directory.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
C# |
---|
public virtual long Put( Stream srcStream, string remoteFile ) |
Visual Basic |
---|
Public Overridable Function Put ( _ srcStream As Stream, _ remoteFile As String _ ) As Long |
Visual C++ |
---|
public: virtual long long Put( Stream^ srcStream, String^ remoteFile ) |
Parameters
- srcStream
- Type: System.IO..::..Stream
Input stream of data to put.
- remoteFile
- Type: System..::..String
Name of remote file in current directory.
Return Value
Number of bytes transferred.Implements
IFileTransferClient..::..Put(Stream, String)Remarks
The stream is closed after the transfer is complete if
CloseStreamsAfterTransfer is true (the default) and are left
open otherwise.