GetBytes

Description

Returns a byte array for a string input.

Syntax

GetBytes(string_expression[, charset_expression])

Arguments

  string_expression - any string expression

  charset_expression - string_expression indicating the output encoding. The default is UTF-8. See the list of available character sets in http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html.

Examples


GetBytes('Hello World') returns the byte array of the UTF-8 string 'Hello World'.

Return value datatype

Byte array

Impact of null value

If input is null, returns null.

Feedback and Knowledge Base