An NDoc Documented Class Library |

# FTPConnection.DownloadByteArray Method

Download data from the FTP server and return it as a byte-array.

public virtual byte[] DownloadByteArray(
string remoteFile
);

#### Parameters

remoteFile
  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

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace