Uploading and Processing Files in Back end-Code

I have been all over this forum looking for an answer to what seems like a missing feature (one that makes a lot of ideas basically unusable on wix). Putting it simply here is my problem…

  1. I need a way to either upload a file to the back end as binary (or some encoding), or upload to a collection and then pull into the back end as binary (this is convenient solution).

  2. I need to send it via API as a JSON. (not really the issue, just giving some context)

I have read some older threads that say request-response is the way to create a buffer object, but its own git says its deprecated. Node.js Buffer is apparently not supported by wix (another old thread).

what is the officially backed functions I should be using to process this URI?

A small description of the caveats a resource and I should be able to handle this.

Thank you for your time.