Send file in raw body

I’m working with the Digital Ocean API, and I need to send a file in the raw body of an API call. How would I go about doing this?

See this thread here

Does it help?

If it’s an API call where you just need binary data in the body some JS will do the trick.