docs: public static byte[] read(InputStream input) throws IOException {
          ByteArrayOutputStream output = null;
          try {
              output = new ByteArrayOutputStream();
              copy(input, output);
              output.flush();
              return output.toByteArray();
          } finally {
              IOUtils.closeQuietly(output);
          }
      }