CloudBlob.openInputStream Method

Definition

Overloads

openInputStream()

Opens a blob input stream to download the blob.

Use setStreamMinimumReadSizeInBytes(int) to configure the read size.

openInputStream(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Opens a blob input stream to download the blob using the specified request options and operation context.

Use setStreamMinimumReadSizeInBytes(int) to configure the read size.

openInputStream()

Opens a blob input stream to download the blob.

Use setStreamMinimumReadSizeInBytes(int) to configure the read size.

public final BlobInputStream openInputStream()
Returns

An InputStream object that represents the stream to use for reading from the blob.

Exceptions

If a storage service error occurred.

openInputStream(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Opens a blob input stream to download the blob using the specified request options and operation context.

Use setStreamMinimumReadSizeInBytes(int) to configure the read size.

public final BlobInputStream openInputStream(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
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

An InputStream object that represents the stream to use for reading from the blob.

Exceptions

If a storage service error occurred.