SFTP implementation from aem to external location | Community
Skip to main content
Level 2
September 12, 2018
Solved

SFTP implementation from aem to external location

  • September 12, 2018
  • 1 reply
  • 2209 views

we are adding Custom workflow step that should have the sftp code which will copy the files to secure external location from aem cloud.

client.uploadFile(sourcePath, destinationPath)

we have tried the above method from the Jsch Api , but the sourcePath from the above is taking the file from the system location and not from inside aem.

Our use case is to send the aem html, assets to the outside location

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

If you use "put" you can use an input stream to read from. With JCR API you can read the content of a node as stream.

Jörg

1 reply

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
September 12, 2018

If you use "put" you can use an input stream to read from. With JCR API you can read the content of a node as stream.

Jörg