SFTP to get a File

Hello All,

I have a requirement where I need to get a file using SFTP. The command which I am using is get xxxxx.txt. Then it writes the file to the IntegrationServer folder in wM. But I do not want that…

I want to just read the file and transform it to publishable document and publish it…once publish is successful. I have to delete the file on target location.

Please let me know.
thanks.

What library are you using for the SSH facilities? You should be able to write a Java service that reads the remote file into memory. Of course you’ll want to be careful about using this technique with files of a size that could negatively impact memory.