SSH Factory for .NET

Scp.Upload Method (Byte[], String, String)

Uploads file to SSH server where contents of file is not on disk but in memory.

public void Upload(
   byte[] data,
   string remoteDir,
   string remoteFile
);

Parameters

data
the raw contents of the file to upload
remoteDir
emote directory path with ending path separator (i.e "/user/home/") or empty line for current directory
remoteFile
the filename to store file as on SSH server

See Also

Scp Class | Jscape.Scp Namespace | Scp.Upload Overload List