# How to set POST request Binary body for Postman Iterations?

**URL:** <https://community.postman.com/t/how-to-set-post-request-binary-body-for-postman-iterations/2651>\
**Category:** Help Hub\
**Tags:** post, csvdatafile\
**Created:** [September 11, 2018, 8:42am UTC](https://community.postman.com/t/how-to-set-post-request-binary-body-for-postman-iterations/2651 "2018-09-11T08:42:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:47am UTC](https://community.postman.com/t/how-to-set-post-request-binary-body-for-postman-iterations/2651/4 "2023-06-18T10:47:15Z")

</div>

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.

---

_[View the full topic](https://community.postman.com/t/how-to-set-post-request-binary-body-for-postman-iterations/2651)._
