How to download the file in the CQ5 | Community
Skip to main content
October 16, 2015
Solved

How to download the file in the CQ5

  • October 16, 2015
  • 13 replies
  • 5779 views

We need to download the all extension files like pdf | txt | word |html and son on but except image in the CQ5, then to translate these files in localhost. At last upload these files back to CQ5.

The question is how to know the files list path and how to get the files stored in the CQ5 to localhost or a specific server and how to upload the file to CQ5?

 

Awaiting for anyone suggestion, thanks in advance!  

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 smacdonald2008

To download files, (for example, DAM Assets), you use the QueryBuilder API. Here is a community article that talks about how to build a custom Sling Servlet that downloads DAM Assets. In this use case - the collection of DAM Assets retrieved using the QueryBuilder API is placed in a ZIP file and downloaded, as shown in this pic:

[img]downloadClient.png[/img]

To read this development article, see: http://helpx.adobe.com/experience-manager/using/downloading-dam-assets.html.

13 replies

October 16, 2015

Thanks you so much, again: API "AssetDownloadService"  is this a webservice?  If false,  developers how to instance it?   

Lokesh_Shivalingaiah
Level 10
October 16, 2015

AssetDownloadService is a service. one of the way to get an instance using @reference

@Reference

AssetDownloadService  assetDownloadService;

and then you can use this variables to access its methods.

October 16, 2015

Get it , thank you so much.