upload File ToBlock Blob(final AsynchronousFileChannel file, final BlockBlobURL blockBlobURL, final int blockLength, final TransferManagerUploadToBlockBlobOptions options)
Uploads the contents of a file to a block blob in parallel, breaking it into block-size chunks if necessary.
public static Single<CommonRestResponse> uploadFileToBlockBlob(final AsynchronousFileChannel file, final BlockBlobURL blockBlobURL, final int blockLength, final TransferManagerUploadToBlockBlobOptions options)
- final AsynchronousFileChannel
The file to upload.
- final BlockBlobURL
Points to the blob to which the data should be uploaded.
- final int
If the data must be broken up into blocks, this value determines what size those blocks will be. This will affect the total number of service requests made as each REST request uploads exactly one block in full. This value will be ignored if the data can be uploaded in a single put-blob operation. Must be between 1 and BlockBlobURL#MAX_STAGE_BLOCK_BYTES. Note as well that
</code> must be less than or equal to <xref uid="com.microsoft.azure.storage.blob._block_blob_u_r_l.MAX_BLOCKS" data-throw-if-not-resolved="false">BlockBlobURL#MAX_BLOCKS</xref>. </p>
Emits the successful response.
It looks like the sample you are looking for has moved! Rest assured we are working on resolving this.
For more samples, please see the Samples file