raw()

The raw version of a binary.

Copy
image = Scrivito.getClass("Image").all().first();
rawBinary = image.get('blob').raw();
console.log(rawBinary.contentLength());

The raw version of a binary is its original version to which no default transformation has been applied. This means that no metadata of the originally uploaded binary are stripped, making this data available to not logged-in users.

This method should only be used if the current user is logged in as an editor.

Returns

Binary

See also

original