Downloading Adobe Experience Manager DAM Assets using Sling Servlets and the Query Builder API | Community
Skip to main content
smacdonald2008
Level 10
October 16, 2015

Downloading Adobe Experience Manager DAM Assets using Sling Servlets and the Query Builder API

  • October 16, 2015
  • 1 reply
  • 2083 views

You can create an AEM Sling Servlet that uses the AEM Query Builder API to search the AEM Digital Asset Manager (DAM) and return a collection of assets within a ZIP file. The client web browser downloads the ZIP file that contains the DAM assets.

You can create a Sling Servlet that performs these tasks:

  • Uses the QueryBuilder API to search a specific DAM folder
  • Retrieves assets (for example, PNG files)
  • Places the assets in a ZIP file
  • Returns the ZIP file  

The following illustration shows the use case described in this development article.

[img]DAMAssets.png[/img]

See: http://helpx.adobe.com/experience-manager/using/downloading-dam-assets.html

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

1 reply

DhirajAg
Level 4
October 2, 2018

How about just using the AEM OOTB assetdownload.zip servlet

for example a post call like below

POST /content/dam.assetdownload.zip/abc.zip

with below parameters

path=%2Fcontent%2Fdam%2Fsample1.png

path=%2Fcontent%2Fdam%2Fsample2.png

path=%2Fcontent%2Fdam%2Fsample3.png

_charset_=utf-8

downloadAssets=true

licenseCheck=true

flatStructure=true

downloadRenditions=false

downloadSubassets=false