CloudBlob.uploadFromFile Method

Definition

Overloads

uploadFromFile(final String path)

Uploads a blob from a file. If the blob already exists on the service, it will be overwritten.

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

Uploads a blob from a file. If the blob already exists on the service, it will be overwritten.

uploadFromFile(final String path)

Uploads a blob from a file. If the blob already exists on the service, it will be overwritten.

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

A String which represents the path to the file to be uploaded.

Exceptions

If a storage service error occurred.

IOException

If a storage service error occurred.

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

Uploads a blob from a file. If the blob already exists on the service, it will be overwritten.

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

A String which represents the path to the file to be uploaded.

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.