This page explains how to use the base64_encode_fromarray function in APL.
base64_encode_fromarray
function to convert a sequence of bytes into a Base64-encoded string. This function is useful when you need to transform binary data into a textual representation for safe storage, logging, or transmission—especially over protocols that require plain-text formats.
You can apply this function when working with IP addresses, file contents, or any byte array that needs to be encoded for use in logs or APIs. It accepts a byte array and returns the Base64-encoded string representation of that array.
Splunk SPL users
eval
with a helper function in an app context.ANSI SQL users
TO_BASE64()
in MySQL, or encode()
in PostgreSQL).Name | Type | Required | Description |
---|---|---|---|
array | dynamic | ✔️ | A dynamic array of integers between 0 and 255 representing byte values. |
_time | id | method | uri | encoded_ip |
---|---|---|---|---|
2025-06-25T08:00:00Z | user123 | GET | /api/data | wKgAAQ== |