You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/12/12 15:25:51 UTC
[GitHub] [camel] davsclaus commented on a diff in pull request #8881: [Camel-18808] add support for CamelAzureStorageBlobBlobUploadSize in uploadBlockBlob operation
davsclaus commented on code in PR #8881:
URL: https://github.com/apache/camel/pull/8881#discussion_r1045970052
##########
components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobStreamAndLength.java:
##########
@@ -40,14 +40,16 @@ private BlobStreamAndLength(InputStream inputStream, long streamLength) {
@SuppressWarnings("rawtypes")
public static BlobStreamAndLength createBlobStreamAndLengthFromExchangeBody(final Exchange exchange) throws IOException {
Object body = exchange.getIn().getBody();
+ Long blobSize = exchange.getIn().getHeader(BlobConstants.BLOB_UPLOAD_SIZE, () -> null, Long.class);
Review Comment:
You can maybe remove the header here instead?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org