Measurable Success «10 Checkpoints for Future-Proof Enterprise CMS» White Paper
Measurable Success - White Paper

metadata()

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'));