This method uploads the file specified by the first argument and saves it on the server with the name specified by the second
argument. If the file is already present on the server then it is usually overwritten, though this depends on the server configuration.
File appending is also supported, whereby the contents of the local file are appended to the end of
the remote file. Appending is done by passing a third parameter to the uploadFile() method:
This method downloads the file specified by the second argument and saves it locally with the name specified by the first
argument. If the file is already present on the local storage medium then it is overwritten.
A remote file can also be downloaded into memory as a byte
array:
A file may be deleted by calling the
deleteFile() method.
Notes:
(1) It is often useful to use streams to transfer data directly to and from memory. The topicHow to transfer using FTP streams explains how to do this.