title: How to write byte[] to an IoSession
body: <p>As shown below I can read the byte[]  sent from an IoSession without having a protocol decoder.</p>
  
  <pre><code>IoBuffer in = (IoBuffer) message;
  byte[] inBytes = in.array();
  int length = inBytes[0];
  inBytes = Arrays.copyOfRange(inBytes, 1, length + 1);
  ByteString incomingMessage = ByteString.copyFrom(inBytes);
  </code></pre>
  
  <p>But when I try to do:</p>
  
  <pre><code>someIoSession.write(incomingMessage.toByteArray());
  </code></pre>
  
  <p>I get the following error.</p>
  
  <p><code>Don't know how to handle message of type XXXX.  Are you missing a protocol encoder?</code></p>
  
  <p>How can I just write the bytes into an IoSession?</p>