CloudBlob.download Method

Definition

Overloads

download(final OutputStream outStream)

Downloads the contents of a blob to a stream.

download(final OutputStream outStream, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Downloads the contents of a blob to a stream using the specified request options and operation context.

download(final OutputStream outStream)

Downloads the contents of a blob to a stream.

public final void download(final OutputStream outStream)
Parameters
outStream
final OutputStream

An OutputStream object that represents the target stream.

Returns
final void
Exceptions

If a storage service error occurred.

download(final OutputStream outStream, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Downloads the contents of a blob to a stream using the specified request options and operation context.

public final void download(final OutputStream outStream, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
outStream
final OutputStream

An OutputStream object that represents the target stream.

accessCondition
final AccessCondition

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

options
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
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