Skip to main content

Base64 to file

Write Base64 text (for example a PDF or image returned by a web service) to a file.

Command in the File toolkit · id ooa.file/from_base64 · 3 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Base64StringYesBase64 text; a data: prefix such as data:application/pdf;base64, is allowed.
PathFileYesFile to write; its folder is created when missing.
OverwriteBooleanNofalseReplace the file when it exists; when off, stop with FILE.EXISTS.

Outputs​

OutputTypeWhat it is
pathFileFull path of the written file.
size_bytesNumberSize of the written file.