IronFlowDocs

base64_decode

Decode a base64 string to text or write decoded bytes to a file.

Parameters

inputstringone of input or source_key
Base64 string to decode; supports ${ctx.key} interpolation.
source_keystringsee above
Context key containing the base64 string to decode.
output_keystringdefault "base64_decoded"
Context key for the decoded output.
output_filestring
File path to write decoded bytes to.
url_safebooldefault false
Expect URL-safe base64 alphabet.

Context Output

  • If no output_file: <output_key> (default base64_decoded) — the decoded string.
  • If output_file is set: <output_key>_path — the file path written to.

Example

local flow = Flow.new("decode_demo")

flow:step("decode", nodes.base64_decode({
    input = "SGVsbG8sIFdvcmxkIQ==",
    output_key = "decoded"
}))

flow:step("log", nodes.log({
    message = "Decoded: ${ctx.decoded}"
})):depends_on("decode")

return flow

IronFlow documentation

Find the next step

Type a keyword to search the documentation.

to move · Enter to open · Esc to close