Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function TOBINARY

Calculates the binary representation of Base64-encoded data.

Example

tobinary(any data,[string charset]):binary

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
data any  Yes A variable representing data in Base64-encoded format or a PDF document.  
charset string  No if first argument is a string and this argument is set, the string is not handled as base64 encoded string,
it is simply converted to a binary, with help of the given argument.
the value can be a valid charset name, "web" for the web charset defined with this context or "resource" for the resource charset defined in the context.