Uploads data from System.IO.Stream to a remote file.
For an efficient upload from a physical local file, use Session.PutFileToDirectory and similar methods instead.
public void PutFile(
TransferOptions options = null
Public Sub PutFile(
stream As System.IO.Stream,
remoteFilePath As String,
Optional options As TransferOptions = Nothing
Event Session.FileTransferred is raised for the upload. Also raises Session.FileTransferProgress throughout the transfer.
Streaming is supported with the SFTP protocol only.