How to return a UInt8Array from code block?

How can I return a Uint8Array data as a binary in n8n using a Code block?

Thank you

Welcome to the community @plaintext!

hm, honestly never used Uint8Array in my whole life. How do you convert an Uint8Array in plain JavaScript to a buffer? Then I can answer how to do convert it into binary data in an n8n Code Node.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.