# Sending raw binary body from pre-scripting variable

**URL:** <https://community.postman.com/t/sending-raw-binary-body-from-pre-scripting-variable/42227>\
**Category:** Help Hub\
**Tags:** binary\
**Created:** [December 20, 2022, 2:10pm UTC](https://community.postman.com/t/sending-raw-binary-body-from-pre-scripting-variable/42227 "2022-12-20T14:10:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ab-tools](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/ab-tools/32/16126_2.png) [@ab-tools](https://community.postman.com/u/ab-tools)\
**Post date:** [June 18, 2023, 10:49am UTC](https://community.postman.com/t/sending-raw-binary-body-from-pre-scripting-variable/42227/2 "2023-06-18T10:49:01Z")

</div>

Hello pmaillet,

you found a solution to this?

This seems to be a duplicate of this older thread - also with no solution:

> [@How to set POST request Binary body for Postman Iterations?](https://community.postman.com/t/how-to-set-post-request-binary-body-for-postman-iterations/2651/4):
>
> Somebody found a solution to this? 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.

I have the same questions as well:  
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.

Thanks  
Andreas

---

_[View the full topic](https://community.postman.com/t/sending-raw-binary-body-from-pre-scripting-variable/42227)._
