CloudBlob.uploadFromByteArray Method

Definition

Overloads

uploadFromByteArray(final byte[] buffer, final int offset, final int length)

Uploads a blob from data in a byte array. If the blob already exists on the service, it will be overwritten.

uploadFromByteArray(final byte[] buffer, final int offset, final int length, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Uploads a blob from data in a byte array. If the blob already exists on the service, it will be overwritten.

uploadFromByteArray(final byte[] buffer, final int offset, final int length)

Uploads a blob from data in a byte array. If the blob already exists on the service, it will be overwritten.

public void uploadFromByteArray(final byte[] buffer, final int offset, final int length)
Parameters
buffer
final byte []

A byte array which represents the data to write to the blob.

offset
final int

A int which represents the offset of the byte array from which to start the data upload.

length
final int

An int which represents the number of bytes to upload from the input buffer.

Exceptions

If a storage service error occurred.

IOException

If a storage service error occurred.

uploadFromByteArray(final byte[] buffer, final int offset, final int length, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Uploads a blob from data in a byte array. If the blob already exists on the service, it will be overwritten.

public void uploadFromByteArray(final byte[] buffer, final int offset, final int length, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
buffer
final byte []

A byte array which represents the data to write to the blob.

offset
final int

A int which represents the offset of the byte array from which to start the data upload.

length
final int

An int which represents the number of bytes to upload from the input buffer.

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.