Back to FabImage Library website

You are here: Start » Function Reference » System » FTP » Ftp_SendImage

Ftp_SendImage


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Sends an image to a remote server using FTP (File Transfer Protocol).

Syntax

C++
C#
 
void fil::Ftp_SendImage
(
	const fil::Image& inImage,
	ftl::Optional<fil::ImageFileFormat::Type> inImageFileFormat,
	const ftl::String& inHostName,
	const ftl::String& inDestinationFileName,
	ftl::Optional<const ftl::String&> inUsername,
	ftl::Optional<const ftl::String&> inPassword,
	bool inUsePassiveMode,
	ftl::Optional<int> inTimeout,
	bool inAllowUntrusted,
	const ftl::Optional<ftl::File>& inCaCertFile
)

Parameters

Name Type Range Default Description
Input value inImage const Image& Image to send.
Input value inImageFileFormat Optional<ImageFileFormat::Type> NIL If Nil the format will be chosen on the basis of extension.
Input value inHostName const String& \"ftp://\" URL address of the remote server.
Input value inDestinationFileName const String& Path where an image file should be saved on a remote server.
Input value inUsername Optional<const String&> NIL User name needed to log in.
Input value inPassword Optional<const String&> NIL Password associated with a user name.
Input value inUsePassiveMode bool Protocol communication mode. May be necessary when using a firewall.
Input value inTimeout Optional<int> 0 - NIL Request timeout in seconds.
Input value inAllowUntrusted bool False Whether or not to allow untrusted SSL certificates.
Input value inCaCertFile const Optional<File>& NIL File holding one or more certificates to verify the peer with.

Errors

List of possible exceptions:

Error type Description
DomainError Empty destination file name on input in Ftp_SendImage
DomainError Empty host name on input in Ftp_SendImage