CloudBlockBlob.BeginUploadFromByteArray Method (Byte[], Int32, Int32, AsyncCallback, Object)

 

Updated: August 4, 2016

Begins an asynchronous operation to upload the contents of a byte array to a blob. If the blob already exists, it will be overwritten.

Namespace:   Microsoft.WindowsAzure.Storage.Blob
Assembly:  Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

[DoesServiceRequestAttribute]
public virtual ICancellableAsyncResult BeginUploadFromByteArray(
	byte[] buffer,
	int index,
	int count,
	AsyncCallback callback,
	object state
)

Parameters

buffer
Type: System.Byte[]

An array of bytes.

index
Type: System.Int32

The zero-based byte offset in buffer at which to begin uploading bytes to the blob.

count
Type: System.Int32

The number of bytes to be written to the blob.

callback
Type: System.AsyncCallback

An AsyncCallback delegate that will receive notification when the asynchronous operation completes.

state
Type: System.Object

A user-defined object that will be passed to the callback delegate.

Return Value

Type: Microsoft.WindowsAzure.Storage.ICancellableAsyncResult

An ICancellableAsyncResult that references the asynchronous operation.

Return to top
Show: