CloudPageBlob.UploadFromStreamAsync Method (Stream, Int64)


Updated: August 4, 2016

Initiates an asynchronous operation to upload a stream to a page blob. If the blob already exists, it will be overwritten.

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

public virtual Task UploadFromStreamAsync(
	Stream source,
	long length


Type: System.IO.Stream

A Stream object providing the blob content.

Type: System.Int64

The number of bytes to write from the source stream at its current position.

Return Value

Type: System.Threading.Tasks.Task

A Task object that represents the asynchronous operation.

Return to top