Nagarjuna
Nagarjuna

Reputation: 19

how to convert request from byte[] to ByteBuf and send it to server using Netty

I am new to netty, I am trying to send a request to TCP server using netty CLIENT, my TCP server accepts only byte array, how to send byte array as request and get the response from TCP server.

Upvotes: 0

Views: 1605

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23567

Just use Unpooled.wrappedBuffer(bytearray)

Upvotes: 2

Related Questions