FTP - File Transfer Protocol Features Requirements Developments Awards
FTP - File Transfer Protocol
Only $19

consists of a component for .NET Environment for support FTP (File Transfer Protocol).

  




Features

Which allows you to create client application support FTP (File Transfer Protocol), this component provides the following rich set of features:

  • Standard File Transfer Passive Protocol.
  • Upload and Download files, images or bytes array data.
  • Create, Remove and Change remote path.
  • Get list of files located in to remote FTP server.

Requirements

  • Windows 2000 (Service Pack 2 or higher), Windows XP, Windows 2003, Windows Vista
  • Visual Studio 2003 FrameWork 1.1 (or other ambient that support it)

Developments

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 :

Component       Description

FTP (VS.NET)
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 :


 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
                    

Awards