Expand my Community achievements bar.

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

Avatar

Level 10

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

1 Reply

Avatar

Level 4

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