Map<QName, Serializable> prop = nodeService.getProperties(fileNodeRef);
String contentUrl = ((ContentData) prop.get(ContentModel.PROP_CONTENT)).getContentUrl();
if (contentUrl != null && contentUrl.length() > 0) {
ContentReader rawReader = contentService.getRawReader(contentUrl);
if (rawReader != null) {
try{
InputStreamResource ipsr = new InputStreamResource(rawReader.getContentInputStream());
if (ipsr != null) {
//ipsr.getFile();
arrayFiles.add(ipsr);
}
} catch(Exception e) {
System.out.println(e);
}
}
}
ContentReader reader = contentService.getReader(fineNodeRef, ContentModel.PROP_CONTENT);
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.