# Protobuf - ByteArrayBody - Send feeder file row to request body

**URL:** https://community.gatling.io/t/protobuf-bytearraybody-send-feeder-file-row-to-request-body/7773
**Category:** Gatling (Open-Source)
**Created:** [March 30, 2023, 1:47pm UTC](https://community.gatling.io/t/protobuf-bytearraybody-send-feeder-file-row-to-request-body/7773 "2023-03-30T13:47:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mudit](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@Mudit](https://community.gatling.io/u/Mudit)
#### Post date: [March 30, 2023, 1:47pm UTC](https://community.gatling.io/t/protobuf-bytearraybody-send-feeder-file-row-to-request-body/7773/1 "2023-03-30T13:47:21Z")

</div>

This works  
.body(ByteArrayBody(Array[Byte](10, 9, 112, 100, 18, 16, 112, 95, 105, 110, 115, 116, 97, 108, 108, 97, 116, 105, 111, 110, 73, 100, 25, 124, 69, -73, 94, -45, -51, 71, 64, 33, -77, -20, 73, 96, 115, -107, 94, -64, 41, 0, 0, 0, 0, 0, 0, 0, 64, 48, 1)))

How can i pass feeder file with the following format to request body?  
10, 36, 48, 53, 99, 49, 97, 50, 97, 55, 45, 53, 50, 48, 102, 45, 52, 54, 55, 100, 45, 56, 97, 51, 102, 45, 56, 49, 102, 53, 101, 49, 53, 101, 98, 54, 52, 99, 18, 36, 52, 55, 55, 56, 100, 50, 100, 52, 45, 51, 49, 56, 51, 45, 52, 50, 101, 50, 45, 97, 49, 52, 100, 45, 102, 97, 100, 97, 55, 55, 48, 55, 53, 52, 49, 57, 25, 124, 69, -73, 94, -45, -51, 71, 64, 33, -77, -20, 73, 96, 115, -107, 94, -64, 41, 0, 0, 0, 0, 0, 0, 8, 64, 48, 5  
10, 36, 100, 52, 100, 101, 99, 49, 99, 51, 45, 51, 100, 100, 53, 45, 52, 102, 54, 54, 45, 56, 53, 52, 50, 45, 50, 102, 50, 49, 100, 99, 100, 57, 100, 48, 57, 49, 18, 36, 102, 49, 54, 100, 49, 57, 98, 49, 45, 102, 55, 57, 99, 45, 52, 98, 55, 100, 45, 56, 57, 99, 101, 45, 101, 54, 100, 54, 101, 97, 98, 97, 53, 54, 48, 50, 25, 124, 69, -73, 94, -45, -51, 71, 64, 33, -77, -20, 73, 96, 115, -107, 94, -64, 41, 0, 0, 0, 0, 0, 0, 16, 64

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [March 30, 2023, 2:15pm UTC](https://community.gatling.io/t/protobuf-bytearraybody-send-feeder-file-row-to-request-body/7773/2 "2023-03-30T14:15:25Z")

</div>

It feels very wrong to store a byte array as text as bytes int value. You should use Base64 and decode in a transform: [Gatling - Feeders](https://gatling.io/docs/gatling/reference/current/core/session/feeder/#transform)

---

<div class="post-metadata">

### Author: ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)
#### Post date: [April 29, 2023, 2:15pm UTC](https://community.gatling.io/t/protobuf-bytearraybody-send-feeder-file-row-to-request-body/7773/3 "2023-04-29T14:15:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
