Hi All,<br><br>I&#39;m trying to write simple client and server based on length field framer which passes byte array. However when I try to send the byte array from the client it shows Unexpected exception in selector look warning and throws java.lang.IllegalArgumentException: unsupported message type: class [B. Please give me some tips how do I send raw byte array. Thanks.<br>
<br>ClientBootstrap bootstrap = new ClientBootstrap(<br>
                new NioClientSocketChannelFactory(<br>                        Executors.newCachedThreadPool(),<br>                        Executors.newCachedThreadPool()));<br><br>bootstrap.setPipelineFactory(new ClientPipelineFactory());<br>

<br>ChannelFuture future = bootstrap.connect(new InetSocketAddress(host, port));<br>Channel ch = future.awaitUninterruptibly().getChannel();<br>ch.write(array);<br><br>Albert<br>