Forum Discussion
pkottu
7 years agoOccasional 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
Related Content
Recent Discussions
- 24 hours agoCWalker