@Nullable
  public void uploadBytes(@NotNull final byte[] uploadBytes) throws AppleContentException {
    try {
      outputStream.write(uploadBytes);
    } catch (IOException e) {
      monitor.severe(() -> "Error when uploading to content", e);
      connection.disconnect();
      throw new AppleContentException("Error when uploading to Content", e);
    }
  }
Uploads the given bytes to the url specified in the constructor. If lastRequest is true, the
upload is complete and a ContentResponse is returned. Otherwise, null is returned.

@param uploadBytes
@return ContentResponse
@throws AppleContentException
extensions/data-transfer/portability-data-transfer-apple/src/main/java/org/datatransferproject/datatransfer/apple/photos/streaming/StreamingContentClient.java