title: How to POST binary bytes using java async http client (ning) library
body: <p>I need to use Async Http Client (https://github.com/sonatype/async-http-client ) to post an byte array to URL.Content type is octet-stream.</p>
  
  <p>How Do I do it using async http client.
  Should I use ByteArrayBodyGenerator ? Is there any example code to see how it is done?</p>
  
  <p>If the byte array is already in memory, is it better to use ByteArrayInputStream 
  and use RequestBuilder.setBody(InputStream)</p>