getting octet-stream response

Hi,

I need to grab some field into response messages.
Because it is not JSON, I cannot use for example check(jsonPath("$.Id").saveAs(“merchantId”)))
Is there a way to store/treat octet-stream response, i.e. have a custom check on it?

Regards,

Nicolas Zin

There’s a bodyBytes check: http://gatling.io/docs/2.0.0-RC3/http/http_check.html?highlight=bodybytes#http-response-body
You can then use transform to process the byte array.