net/src/main/java/com/stanfy/enroscar/rest/request/binary/BinaryData.java
protected static void writeInputStreamToOutput(final Context context, final InputStream source, final OutputStream output) throws IOException {
    BuffersPool pool = BeansManager.get(context).getContainer().getBean(BuffersPool.class);
    IoUtils.transfer(source, output, pool);
  }
protected static void writeInputStreamToOutput(final Context context, final InputStream source, final OutputStream output) throws IOException {
    BuffersPool pool = BeansManager.get(context).getContainer().getBean(BuffersPool.class);
    IoUtils.transfer(source, output, pool);
  }
Utility method for transferring input stream to output.
@param context application context (needed to retrieve a buffers pool)
@param source input stream
@param output output stream
@throws IOException if I/O error happens