Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
FTP »
Ftp_SendImage
Sends an image to a remote server using the FTP (File Transfer Protocol)
Syntax
C++
C#
void avl::Ftp_SendImage
(
const avl::Image& inImage,
atl::Optional<avl::ImageFileFormat::Type> inImageFileFormat,
const atl::String& inHostName,
const atl::String& inDestinationFileName,
atl::Optional<const atl::String&> inUsername,
atl::Optional<const atl::String&> inPassword,
bool inUsePassiveMode
)
void Ftp_SendImage
(
Image inImage,
ImageFileFormat? inImageFileFormat,
System.String inHostName,
System.String inDestinationFileName,
System.String inUsername,
System.String inPassword,
bool inUsePassiveMode
)
Parameters
|
Name |
Type |
Default |
Description |
|
inImage |
const Image& |
|
Image to send. |
|
inImageFileFormat |
Optional<ImageFileFormat::Type> |
NIL |
If Nil the format will be chosen on the basis of extension |
|
inHostName |
const String& |
\"ftp://\" |
URL address of the remote server. |
|
inDestinationFileName |
const String& |
|
Path where an image file should be saved on a remote server. |
|
inUsername |
Optional<const String&> |
NIL |
User name needed to log in. |
|
inPassword |
Optional<const String&> |
NIL |
Password associated with a user name. |
|
inUsePassiveMode |
bool |
|
Protocol communication mode. May be necessary when using a firewall. |
Errors
Error type |
Description |
DomainError |
Empty host name on input in Ftp_SendImage |
DomainError |
Empty destination file name on input in Ftp_SendImage |