Railo 4.2 Reference
Choose a function:

Function BINARYENCODE

Converts binary data to a string.

Beispiel

binaryencode(binary binary,string encoding):string

Argumente

Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Beschreibung
binary binary  Yes A variable containing the binary data to encode.  
encoding string  Yes A string that specifies the encoding method to use to represent the data; one of the following:
  • Hex: use the characters 0-9 and A-F to represent the hexadecimal value of each byte.
  • UU: use the UNIX UUencode algorithm to convert the data
  • Base64: use the Base64 algorithm to convert the data, as specified by IETF RFC 2045, at www.ietf.org/rfc/rfc2045.txt.