What is best practice to upload a file with resgate?

Any ideas, practices?

Thank you!

Hi, and welcome to the forum!

Resgate has no built in support for binary files, and NATS it is not optimal for large (file-sized) messages. That said, there are still some options:

  • Base64 (or similar) encoded data in a call requests. It will increase the transfer size with 4/3 of the original, but might be an easy option.
  • Separate HTTP service for file upload. While the single endpoint provided by Resgate might be nice, a separate service that handles files might be an alternative.

Best regards,