Hi guys,

I have an input stream that I would like to push into a remote SFTP
server without creating a local file.

Just as an example of what I have tried the below throws an NPE as
getContent() returns null.

FileObject virtualFile = manager.createVirtualFileSystem("tmp:/" +
localFileInputStreamName);
OutputStream outputStream = localFile.getContent().getOutputStream();
IOUtils.copy(inputStream, outputStream);

Thanks in advance!
-Nestor

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to