See MetadataCollection
for a list of available metadata attributes.
Returns
MetadataCollection
Returns the metadata of the given binary.
See MetadataCollection
for a list of available metadata attributes.
Returns
MetadataCollection
Example
Accessing metadata of the raw
(originally uploaded) version of an image:
binary = Scrivito.getClass("Image").all().first().get("blob").raw();
console.log(binary.metadata().get('width'));
console.log(binary.metadata().get('contentType'));