Uploading files from memory |
You can upload data from memory using any of the Sftp#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 sftp.upload(data.getBytes(),file); |