Downloads the specified file to the output stream.

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

Syntax

C#
public void Download(
	Stream stream,
	string pathname
)
Visual Basic
Public Sub Download ( _
	stream As Stream, _
	pathname As String _
)
Visual C++
public:
void Download(
	Stream^ stream, 
	String^ pathname
)

Parameters

stream
Type: System.IO..::..Stream
the output stream
pathname
Type: System..::..String
the remote pathname

Exceptions

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

See Also