Uploads the specified data to the remote file.

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

Syntax

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

Parameters

data
Type: array<System..::..Byte>[]()[][]
the data to upload
pathname
Type: System..::..String
the remote filename
append
Type: System..::..Boolean
the file append flag

Exceptions

ExceptionCondition
Jscape.Sftp..::..SftpExceptionif an error occurs

See Also