Skip to main content

File to Base64

Read a file (a PDF, an image, any file) as Base64 text, for web services that take attachments as text.

Command in the File toolkit · id ooa.file/to_base64 · 1 input (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesFile to read; up to 50 MB.

Outputs​

OutputTypeWhat it is
base64StringThe file's contents as Base64 text.
size_bytesNumberSize of the file.