Binary writer

[io/file/Binary writer]


Writes a baseb64 string to a binnary file. (To keep the application portable use "/" as path separator.) Example A:

  1. "c:/image.png"@1 received via path

  2. "VGhlIGJhc2tldCBpcyBmdWxsIG9mIGdyYXBlcy4="@1received via base64

  3. written sends "c:/image.png"@1

Example B:

  1. "j:/test.png"@1 received via path

  2. "VGhlIGJhc2tldCBpcyBmdWxsIG9mIGdyYXBlcy4="@1received via base64

  3. 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

Input ports

  • 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

Output ports

  • 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

Last updated