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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Base64 | String | Yes | Base64 text; a data: prefix such as data:application/pdf;base64, is allowed. | |
| Path | File | Yes | File to write; its folder is created when missing. | |
| Overwrite | Boolean | No | false | Replace the file when it exists; when off, stop with FILE.EXISTS. |
Outputs
| Output | Type | What it is |
|---|---|---|
| path | File | Full path of the written file. |
| size_bytes | Number | Size of the written file. |