Any news about this use case ? Since the raw body type seems to change the binary content, and the file body type only accept an effective file on the machine we can not provide environment base64 representation of the wanted body.
Since postman does not allow the pre-script to write a temporary file, i have no more ideas how to use postman to send binary content in an automation process.
I was happy to see that there is since Postman v8.3.0 finally a easy way to update the request body from pre-script, but looks like this is not working correctly for binary data despite the body mode is set to “raw”.
So how can we update the request body before sending via pre-script to (AES-encrypted) binary data?
It should be sent as “application/octet-stream” content-type, so no base64 encoding needed.