docs: public static long computeLength(StreamingContent content) throws IOException {
      ByteCountingOutputStream countingStream = new ByteCountingOutputStream();
      try {
        content.writeTo(countingStream);
      } finally {
        countingStream.close();
      }
      return countingStream.count;
    }