As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<a href="http://localhost:8080/alfresco/d/a/workspace/SpacesStore/70847d54-dd4d-4660-a557-f788a8f2b94e/test.docx">Download file </a>
String defaultURL= "http://localhost:8080/alfresco/d/a/workspace/SpacesStore/70847d54-dd4d-4660-a557-f788a8f2b94e/test.docx"; HttpGet httpget = new HttpGet(defaultURL); org.apache.http.client.HttpClient httpClient = new DefaultHttpClient(); HttpResponse response = httpClient.execute(httpget); HttpEntity entity = response.getEntity(); if (entity != null) { long len = entity.getContentLength(); InputStream inputStream = entity.getContent(); ……. // Something here to get the input stream // and the file object to put into the zip file