CloudFile.UploadFromByteArray Method

Definition

Uploads the contents of a byte array to a file. If the file already exists on the service, it will be overwritten.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual void UploadFromByteArray (byte[] buffer, int index, int count, Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.File.FileRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member UploadFromByteArray : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
override this.UploadFromByteArray : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
Public Overridable Sub UploadFromByteArray (buffer As Byte(), index As Integer, count As Integer, Optional accessCondition As AccessCondition = Nothing, Optional options As FileRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing)

Parameters

buffer
Byte[]

An array of bytes.

index
Int32

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

count
Int32

The number of bytes to be written to the file.

accessCondition
AccessCondition

An AccessCondition object that represents the access conditions for the file.

options
FileRequestOptions

A FileRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

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

Attributes

Applies to