rahul_phadnis
15 years agoOccasional Contributor
Send Binary Data in REST Request
I am looking for a way to send a Protocol Buffer request using a REST Request. The content type for the request is application/x-protobuf. I have written a groovy script that creates a byte array representing the request. My question is how do I set the request body to this byte array ?
Looking at the general properties API, I see that they all work on strings and I don't see a way to set a property value to a byte array. Is there a way to set the request body content ? (You can do this using property expansion for only strings)
Thank you,
Rahul
Looking at the general properties API, I see that they all work on strings and I don't see a way to set a property value to a byte array. Is there a way to set the request body content ? (You can do this using property expansion for only strings)
Thank you,
Rahul