Click or drag to resize
FTPUploadFile Method (Byte, Uri, String, String, String, Boolean, Int32, Boolean)
Upload a byte array file via FTP

Namespace: ProFTPNetLibrary
Assembly: ClientFTPNetLibrary (in ClientFTPNetLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool UploadFile(
	byte[] sourceBytes,
	Uri destinationFile,
	string username,
	string password,
	string proxyAddress,
	bool passive,
	int port,
	bool keepAlive
)

Parameters

sourceBytes
Type: SystemByte
Source byte array file
destinationFile
Type: SystemUri
Uri of the destination file (es: "ftp://www.domain.com/file.txt")
username
Type: SystemString
FTP access username
password
Type: SystemString
FTP access password
proxyAddress
Type: SystemString
FTP proxy (string.empty if unknown or not used)
passive
Type: SystemBoolean
FTP passive mode enabling (false if unknown or not used)
port
Type: SystemInt32
FTP access port (usually 21)
keepAlive
Type: SystemBoolean
Define if you need to keep alive the connection after the process (usually false)

Return Value

Type: Boolean
True if completed successfully: false otherwise
See Also