When register this product you can full using the libraries for developers in your other applications.
Below describes the properties and methods you can use for single component :
|
Interface |
|
Description |
|
Propertys |
|
LastMessage |
Return the last error message |
|
RemoteHost |
Return or set the IP address of the remote server |
|
RemotePort |
Return or set the TCP port of the remote server |
|
RemotePassword |
Return or set the remote password to access the server |
|
RemoteUser |
Return or set the remote user to access the server |
|
Methods |
|
Connect |
Connect to remote FTP server |
|
CloseConnection |
Close the current opened connection |
|
Upload |
Send data to the remote server |
|
Download |
Get data from the remote server |
|
DownloadImage |
Get a picture image located in the remote server |
|
ChangeDirectory |
Change directory path name in the remote server |
|
DeleteFile |
Remove a file located in the remote server |
|
RenameFile |
Rename the file name of a file located in the remote server |
|
CreateDirectory |
Create a directory to the remote server |
|
RemoveDirectory |
Remove a directory from remote server |
|
GetFileSize |
Return size of a file located on remote server |
|
GetFileList |
Return list of files located on remote server |
Below a simple example for VS.NET version :
VB
Priore.Controls
img Image ' initialization
FTPIO New FTP ' initialization
FTPIO.RemoteHost = "62.149.130.140" ' remote FTP server
FTPIO.RemoteUser = "test" ' username
FTPIO.RemotePassword = "test" ' password
FTPIO.RemotePort = 21 ' TCP port
FTPIO.Connect() ' connect
MsgBox(FTPIO.LastMessage) ' error message
FTPIO.ChangeDirectory("/test") ' change path
MsgBox(FTPIO.LastMessage) ' error message
FTPIO.CloseConnection() ' close connection
img = Image.FromFile("c:\images\wintermist.jpg") ' load a image from local file
FTPIO.Upload("newname.jpg", img) ' send image
MsgBox(FTPIO.LastMessage) ' error message
FTPIO.CloseConnection() ' close connection
img = FTPIO.DownloadImage("pippo.jpg") ' retrieve image from remote server
img ' not image found
MsgBox(FTPIO.LastMessage) ' error message
' right ok
PictureBox1.Image = img ' show image
FTPIO.CloseConnection() ' close connection
|