Uploading files from memory |
You can upload data from memory using any of the Ftp#upload methods that take a byte array as it's first argument.
Example
// data to upload String data = "this is a test";
// destination file to store data in String file = "data.txt";
// upload byte array ftp.upload(data.getBytes(),file); |