CloudBlockBlob.UploadFromStream CloudBlockBlob.UploadFromStream Method

Definition

Overloads

UploadFromStream(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext) UploadFromStream(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStream(Stream, AccessCondition, BlobRequestOptions, OperationContext) UploadFromStream(Stream, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStream(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext) UploadFromStream(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a stream to a block blob. If the blob already exists, it will be overwritten.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual void UploadFromStream (System.IO.Stream source, long length, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition = null, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member UploadFromStream : System.IO.Stream * int64 * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
override this.UploadFromStream : System.IO.Stream * int64 * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
Parameters
source
Stream Stream

A Stream object providing the blob content.

length
Int64 Int64

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

accessCondition
AccessCondition AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed. If null, no condition is used.

options
BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext OperationContext

An OperationContext object that represents the context for the current operation.

Implements

UploadFromStream(Stream, AccessCondition, BlobRequestOptions, OperationContext) UploadFromStream(Stream, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a stream to a block blob. If the blob already exists, it will be overwritten.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual void UploadFromStream (System.IO.Stream source, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition = null, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member UploadFromStream : System.IO.Stream * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
override this.UploadFromStream : System.IO.Stream * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
Parameters
source
Stream Stream

A Stream object providing the blob content.

accessCondition
AccessCondition AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed. If null, no condition is used.

options
BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext OperationContext

An OperationContext object that represents the context for the current operation.

Implements

Applies to