/** * Gets the blobs of the document. * * @param doc the document * @return the list of blobs */ public List<Blob> getBlobs(DocumentModel doc) { List<Blob> blobs = new ArrayList<>(); for (Property property : getBlobsProperties(doc)) { blobs.add((Blob) property.getValue()); } return blobs; }
List<Property> properties = new BlobsExtractor().getBlobsProperties(doc);