Skip to content
Discussion options

You must be logged in to vote

The answer is right there in the stacktrace. And in the javadoc of the method you're calling.

public abstract byte[] array()
Returns the backing byte array of this buffer.
Throws:
UnsupportedOperationException - if there no accessible backing byte array

Have you tried using one of the toString() methods of ByteBuf if you want to turn the buffer into a String?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@saeedrahmo
Comment options

@hylkevds
Comment options

hylkevds Aug 2, 2022
Collaborator

@saeedrahmo
Comment options

@Jamie98-ie
Comment options

Answer selected by saeedrahmo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants