CloudBlockBlob.uploadFullBlob(final InputStream sourceStream, final long length, final AccessCondition accessCondition, final BlobRequestOptions options, final OperationContext opContext) Method

Definition

Uploads a blob in a single operation.

protected final void uploadFullBlob(final InputStream sourceStream, final long length, final AccessCondition accessCondition, final BlobRequestOptions options, final OperationContext opContext)
Parameters
sourceStream
final InputStream

A InputStream object that represents the source stream to upload.

length
final long

The length, in bytes, of the stream, or -1 if unknown.

accessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the blob.

options
final BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudBlobClient).

opContext
final OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns
final void
Exceptions

If a storage service error occurred.

Applies to