Renders the original, unmodified bytes of a binary asset, such as an uploaded image or document. Registered against a content type as the "binary-view" XStream alias and used, among other places, as the default view an asset type falls back to when no other view mapping matches. At render time it streams the asset's stored data straight to the output via AssetManager, without any transcoding or templating.

Implements: AssetView


Properties

PropertyReturnsDescription
textStringA short human-readable label for this view. Used where views are listed for an administrator to choose from.

Methods

getContentType(Asset item)

Returns: String

The content type this view produces, taken directly from the asset being rendered.

ParameterDescription
itemthe asset whose stored format is returned as the content type

getText()

Returns: String

A short human-readable label for this view. Used where views are listed for an administrator to choose from.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.