FTP allows you to communicate with FTP servers. See FTP tutorial for more information.
Permissions:
android.permission.INTERNET
Events:
DownloadCompleted (ServerPath As String, Success As Boolean) DownloadProgress (ServerPath As String, TotalDownloaded As Long, Total As Long) UploadCompleted (ServerPath As String, Success As Boolean) UploadProgress (ServerPath As String, TotalUploaded As Long, Total As Long) DeleteCompleted (ServerPath As String, Success As Boolean) ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry)
Downloads a file from the server. The DownloadCompleted event will be raised when download completes. DownloadProgress events will be raised during download. ServerFilePath - Full path to the remote file. AsciiFile - If True then end of line characters will be converted as needed. Note that Android end of line character is the same as Unix / Linux. DeviceFolder - Folder that the file will be saved to. DeviceFile - The name of the local file that will be created.
Initialize (EventName AsString, Host AsString, Port AsInt, User AsString, Password AsString)
Initializes the object and sets the subs that will handle the events
IsInitialized AsBoolean
Tests whether the object was initialized.
List (ServerPath AsString)
Fetches the list of folders and files in the specified path. The ListCompleted event will be raised when the data is available.
Uploads a file to the server. The UploadCompleted event will be raised when upload completes. UploadProgress events will be raised during the upload. DeviceFolder - Local folder. DeviceFile - Local file name. AsciiFile - If True then end of line characters will be converted as needed. Note that Android end of line character is the same as Unix / Linux. ServerFilePath - Full path to file that will be created on the server.