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

Namespace: Jscape.Scp
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public void Upload(
	byte[] data,
	string remoteDir,
	string remoteFile
)
Visual Basic
Public Sub Upload ( _
	data As Byte(), _
	remoteDir As String, _
	remoteFile As String _
)
Visual C++
public:
void Upload(
	array<unsigned char>^ data, 
	String^ remoteDir, 
	String^ remoteFile
)

Parameters

data
Type: array<System..::..Byte>[]()[][]
the raw contents of the file to upload
remoteDir
Type: System..::..String
emote directory path with ending path separator (i.e "/user/home/") or empty line for current directory
remoteFile
Type: System..::..String
the filename to store file as on SSH server

See Also