Command description
Encodes content as Base64.
| input parameters | Input parameter type | Description |
|---|
| Content | any | Content to encode |
| Output Text | bool | When True, returns a string; when False, returns bytes |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|
| Encoded Content | str or bytes | Base64 encoding result |
AI Workflow Generation Notes
- Byte input is encoded directly. Other values are converted to strings and encoded as UTF-8 first.
- This command returns pure Base64 content and does not add a Data URL prefix such as
data:image/png;base64,.
- To use encoded binary content as a webpage image source, prepend the Data URL prefix for the actual media type.
- Encoding text with Output Text enabled returns a string.