CloudBlob.downloadToFile Method

Definition

Overloads

downloadToFile(final String path)

Downloads a blob, storing the contents in a file.

downloadToFile(final String path, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Downloads a blob, storing the contents in a file.

downloadToFile(final String path)

Downloads a blob, storing the contents in a file.

public void downloadToFile(final String path)
Parameters
path
final String

A String which represents the path to the file that will be created with the contents of the blob.

Exceptions

If a storage service error occurred.

IOException

If a storage service error occurred.

downloadToFile(final String path, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Downloads a blob, storing the contents in a file.

public void downloadToFile(final String path, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
path
final String

A String which represents the path to the file that will be created with the contents of the blob.

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.

Exceptions

If a storage service error occurred.

IOException

If a storage service error occurred.

Applies to