public static byte[] getBytesFromStream(final InputStream is) throws IOException {
    return getBytesFromStream(is, is.available());
  }
Efficiently fetch bytes from InputStream is by delegating to getBytesFromStream(is,
is.available())
fbcore/src/main/java/com/facebook/common/util/StreamUtil.java