Binary data type / Support for API Action file responses

It’s not the first time someone creates a topic asking for helping dealing with server-side API Actions whose return data is a binary file instead of text. In the past, people dealing with Photoroom API

I propose the creation of a new Binary data type, and support for the following modules:

  • Respose: ability to return binary data as response (e.g.: PDF file)
  • Base64 encode: ability to encode binary data to a Base64 string
  • Base64 decode: ability to decode a Base64 string into binary data
  • Write to disk: ability to write a binary data (file) to disk
  • Read from disk: ability to read a binary data (file) from disk
  • API Action: ability to POST a binary data file (the ability to POST a file is not currently implemented in Wappler core, there’s a third-party Wappler extension that could potentially be modified to work with the new Binary data type)
  • API Action: ability to receive binary data as the response (the main example of this topic)
3 Likes

I’m bumping this thread. This is definitely needed without using n8n or other tools. We should be able to serve our end users with files.

Can you please explain in details what are you trying to achieve and why would you need n8n?