Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

SFTP implementation from aem to external location

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

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