SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
new String(bytebuffer.array(), "ASCII");
NB. you can't correctly convert a byte array to a String without knowing its encoding.
I hope this helps