Binary writer
Last updated
Last updated
[io/file/Binary writer]
Writes a baseb64 string to a binnary file. (To keep the application portable use "/" as path separator.) Example A:
"c:/image.png"@1 received via path
"VGhlIGJhc2tldCBpcyBmdWxsIG9mIGdyYXBlcy4="@1received via base64
written
sends "c:/image.png"@1
Example B:
"j:/test.png"@1 received via path
"VGhlIGJhc2tldCBpcyBmdWxsIG9mIGdyYXBlcy4="@1received via base64
error
sends {
"error": "Writing file failed.",
"details": "Error: ENOENT: no such file or directory, open 'j:\test.png'"
}@1
Keywords: file, write, create, binary, base64, image, video, audio, media
path: string
Receives the path of the generated binary file. Example: "c:/image.png"@1
base64: string
Receives the base64 string to be written as binary file. Example: "VGhlIGJhc2tldCBpcyBmdWxsIG9mIGdyYXBlcy4="@1
written: string
Sends file path if the file writting was successful. Example: "c:/image.png"@1
error: {"error": string, "details": any}
Sends the error, if any. Example: { "error": "Writing file failed.", "details": "Error: ENOENT: no such file or directory, open 'j:\test.png'" }@1