Learn how Scrivito CMS can help you deliver amazing digital experiences
See Scrivito CMS in action

raw()

The raw version of a binary.

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 editors.

Remarks

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

Returns

Binary

See also

original