AnsweredAssumed Answered

Alfresco Download Content

Question asked by alfsender on Nov 20, 2012
Latest reply on Nov 29, 2012 by alfsender
Hi All,

I am working on downloading content from Alfresco. I know Alfresco has exposed webscripts to download content.
I have content url like http://localhost:8080/alfresco/d/a/workspace/SpacesStore/82fc955f-17b3-488b-84ec-3d14a8e3333e/Recurring%20Report%201.published.pdf, but i want to hit this url from my java class using below code..

String DOWNLOAD_URL  = http://localhost:8080/alfresco/d/a/workspace/SpacesStore/82fc955f-17b3-488b-84ec-3d14a8e3333e/Recurring%20Report%201.published.pdf;
HttpClient httpClient = new HttpClient();
GetMethod downloAdGetMethod = new GetMethod(DOWNLOAD_URL);
int responseCodeD = httpClient.executeMethod(downloAdGetMethod);

As I have <a:commandLink> onclick of this i am calling function which has above code. So onclick of that link a popup should come to download that content.

i need your valuable suggestion.