edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Download data from the FTP server and return it as a byte-array.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public virtual byte[] DownloadByteArray(
	string remoteFile
)
Visual Basic
Public Overridable Function DownloadByteArray ( _
	remoteFile As String _
) As Byte()
Visual C++
public:
virtual array<unsigned char>^ DownloadByteArray(
	String^ remoteFile
)

Parameters

remoteFile
Type: System..::..String
Name of remote file in current working directory.

Return Value

Returns a byte-array containing the file-data.

Remarks

Transfers in the current TransferType. Note that we may experience memory limitations as the entire file must be held in memory at one time.

See Also