How to download and save a file under our dam directly using document management systems like Dropbox ?
Hi All,
Is there any way to download a file directly from a document management system like dropbox and save it in AEM dam location like "/content/dam/".
I referred this article http://www.tothenew.com/blog/making-dropbox-documents-available-in-aem/ for "Making Dropbox documents available in AEM".
Using above article I'm able to fetch dropbox file metadata information and asset node creation with metadata but I want to download and save the complete file under dam location.
I referred the Dropbox Java Core API v1 as well and found following code for download file from dropbox https://www.dropbox.com/developers-v1/core/start/java
FileOutputStream outputStream = new FileOutputStream("magnum-opus.txt"); try { DbxEntry.File downloadedFile = client.getFile("/magnum-opus.txt", null,outputStream); System.out.println("Metadata: " + downloadedFile.toString()); } finally { outputStream.close(); }But here is one problem "How to use OutputStream in AEM" OR is there any other way to download file directly from dropbox and save it in AEM dam.
Please provide your suggestion and answers.
I'm Using AEM 6.2 instance.
Thanks,
Arpit Bora