docs: public static byte[] getBytes(InputStream is) throws IOException {
          ByteArrayOutputStream answer = new ByteArrayOutputStream();
          // reading the content of the file within a byte buffer
          byte[] byteBuffer = new byte[8192];
          int nbByteRead /* = 0*/;
          try {
              while ((nbByteRead = is.read(byteBuffer)) != -1) {
                  // appends buffer
                  answer.write(byteBuffer, 0, nbByteRead);
              }
          } finally {
              closeWithWarning(is);
          }
          return answer.toByteArray();
      }