Protobuf - ByteArrayBody - Send feeder file row to request body

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

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

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