vlsi commented on issue #6171:
URL: https://github.com/apache/jmeter/issues/6171#issuecomment-1868535438

   The code in the sample is
   
   ```java
   GZIPOutputStream gzip = new GZIPOutputStream(out);
   gzip.write(requestBody);
   gzip.close();
   
   sampler.getArguments().getArgument(0).setValue(out.toString(0));
   ```
   
   I am afraid this is not going to work as it attempts using `String` where 
`byte[]` should be used.
   Note `.toString(0)` deprecated method.
   
   As a workaround, you might try `iso-8859-1` encoding. That encoding is 
bytesafe (== it converts byte -> char -> byte without losing contents), 
however, in any case it would be a workaround only, and the proper solution 
would be to support `byte[]` in `HTTPArgument`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to