Documentation Center

mediabin

Get a binary resource.

Description

Locate and return a binary resource (e.g. image) in base64 binary format.

Parameters

action
mediabin
area
The area of the requested resource e.g. 'live', 'holding'.
resource
The name of the requested resource.
lang
A language version of a publication.
pub
A publication, which is a logical grouping of information (topics and multimedia) related to a specific subject, containing one or more language versions.

Example URL

http://<host>:<port>/<context>/web/content.xql?action=mediabin&area=<value>&resource=<value>&lang=<value>&pub=<value>

Successful Result

Returns requested binary resource in base64 format, or 'missing_image' icon if resouce cannot be found.

Failed Result

404 error if  language version is not visible or if binary resource is not available.

Permission exception if  user does not have 'Use application' permission (or 'Manage application' if resource is in 'holding' area).