SftpClient ReadAllBytes Method SSH .NET Client Library Documentation
Opens a binary file, reads the contents of the file into a byte array, and then closes the file.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public byte[] ReadAllBytes(
	string path
)

Return Value

A byte array containing the contents of the file.
Exceptions

See Also