I have a Java SFTP Transfer application working fine using a file that is saved on disk. I like to change the logic to use a string or stream. All the information I can find is that it only takes FileInputStream. Any help would be great.
ChannelSftp c = createSession();
try {
    File f = new File(workingFile);
    c.put(new FileInputStream(f), f.getName());
} catch (Exception e) {
    System.err.println("Storing remote file failed. "+e.toString());
    throw e;
}
