CloudBlockBlob.downloadText Method

Definition

Overloads

downloadText()

Downloads a blob to a string using the platform's default encoding.

downloadText(final String charsetName, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Downloads a blob to a string using the specified encoding.

downloadText()

Downloads a blob to a string using the platform's default encoding.

public String downloadText()
Returns
String

A String which represents the blob's contents.

Exceptions

If a storage service error occurred.

IOException

If a storage service error occurred.

downloadText(final String charsetName, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Downloads a blob to a string using the specified encoding.

public String downloadText(final String charsetName, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
charsetName
final String

A String which represents the name of the charset to use to encode the content. If null, the platform's default encoding is used.

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
String

A String which represents the blob's contents.

Exceptions

If a storage service error occurred.

IOException

If a storage service error occurred.

Applies to