Closed sp-davidpichler closed 4 months ago
Let me know if I'm doing something stupid. How else would you send binary data if not through a file?
@sp-davidpichler the change looks plausible
what's the content of you file? is the file itself correct? (or how do you know it's correct?)
I don't know if it works yet. I'm trying to send an audio file(.wav) but haven't gotten this to work. I haven't got my backend application to successfully load the audio file. I think the contents are getting altered somehow. Or there is some other error.
Locally I can load the file in 'rb' mode and process it.
I ended up just using S3 and passing the path to the object.
Could we merge this? I run into the same issue when POST binary data with --data-binary
and POST -d "@test.binary"
@okigan any chance we could merge this as well?
I wasn't able to send a binary file without the above changes Stacktrace: