Base64 encode

Supported in: Batch, Streaming

Base64 encode the given expression.

Expression categories: Binary, Cast

Declared arguments

  • Expression - String or binary expression to encode.
    Expression<Binary | String>

Output type: String

Examples

Example 1: Base case

Argument values:

  • Expression: city
cityOutput
TG9uZG9uTG9uZG9u
Q29wZW5oYWdlbg==Q29wZW5oYWdlbg==
TmV3IFlvcms=TmV3IFlvcms=

Example 2: Base case

Argument values:

  • Expression: city
cityOutput
LondonTG9uZG9u
CopenhagenQ29wZW5oYWdlbg==
New YorkTmV3IFlvcms=

Example 3: Null case

Argument values:

  • Expression: city
cityOutput
nullnull

Example 4: Null case

Argument values:

  • Expression: city
cityOutput
nullnull