Forum Discussion
3 Replies
Sort By
- pkottuOccasional Contributor
I have tried the below...
int length = new Long(mockRequest.message.getBodyLength()).intValue();
byte[] b = new byte[length];
mockRequest.message.readBytes(b, length);
String text = new String(b, "UTF-8")This gives me the length but not the actual bytes and converted into text.
Appreciate your help in this regard