CreateGdPictureImageFromFTP Method (GdPictureImaging)
Creates a new GdPicture image from a file stored on a distant server using FTP protocol according to what you have specified. The newly created image is identified by its unique non-zero image identifier.
Please note that it is your responsibility to release the image resources once you have no use for them.
public int CreateGdPictureImageFromFTP(
string ,
string ,
string ,
string ,
int
)
public function CreateGdPictureImageFromFTP(
: String;
: String;
: String;
: String;
: Integer
): Integer;
public function CreateGdPictureImageFromFTP(
: String,
: String,
: String,
: String,
: int
) : int;
public: int CreateGdPictureImageFromFTP(
string* ,
string* ,
string* ,
string* ,
int
)
public:
int CreateGdPictureImageFromFTP(
String^ ,
String^ ,
String^ ,
String^ ,
int
)
'Declaration
Public Function CreateGdPictureImageFromFTP( _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal As Integer _
) As Integer
Parameters
- Host
- The name of the host server, where the file is located, for example ftp.gdpicture.com.
- Path
- The file path of the image on the host server, for example /demo/image.jpg.
- Login
- The user's login required to authenticate on the server.
- Password
- The user's password required to authenticate on the server.
- FTPPort
- The FTP port number used. It is usually 21.
Return Value
A unique image identifier of the GdPicture image representing the newly created image. The returned value is non-zero if the image is successfully created. Please first of all use the
GdPictureImaging.GetStat method to determine if this method has been successful.
Use the GdPictureImaging.GetLastTransferError method to diagnose the error if this method has failed with one of the GdPictureStatus.Internet... errors.
Be aware that you need to release the image with the GdPictureImaging.ReleaseGdPictureImage method after being used.