08-04-2014 10:40 AM
ContentReader contentReader = contentService.getReader(actionedUponNodeRef, ContentModel.PROP_CONTENT);
InputStream is = contentReader.getContentInputStream();
BufferedReader br= new BufferedReader(new InputStreamReader (is));
/alfresco/download/<direct|attach>/<workspace>/<store>/<nodeId>/<filename>
Content[] content = WebServiceFactory.getContentService().read(new Predicate(new Reference[]{fileRef}, STORE, null) , "{http://www.alfresco.org/model/content/1.0}content" );
String url = content[0].getUrl();
08-10-2014 11:24 AM
ByteArrayInputStream inputStream = new ByteArrayInputStream(new byte[] {});
OutputStream os = response.getOutputStream();
try{
byte[] buffer = new byte[4096];
int numRead;
while( ( numRead = inputStream.read( buffer ) ) != -1 ){
os.write( buffer, 0, numRead );
}
}finally{
try{ inputStream.close(); }catch ( Exception ex ){}
}
08-11-2014 04:31 AM
08-11-2014 12:00 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.