BlockBlobURL.stageBlock(String base64BlockID, Flowable<ByteBuffer> data, long length, LeaseAccessConditions leaseAccessConditions, Context context) Method

Definition

Uploads the specified block to the block blob's "staging area" to be later committed by a call to commitBlockList. For more information, see the Azure Docs.

Note that the data passed must be replayable if retries are enabled (the default). In other words, the Flowable 

</code> must produce the same data each time it is subscribed to.</p>

public Single<BlockBlobStageBlockResponse> stageBlock(String base64BlockID, Flowable<ByteBuffer> data, long length, LeaseAccessConditions leaseAccessConditions, Context context)

Parameters

base64BlockID
String

A Base64 encodedString 

</code> that specifies the ID for this block. Note that all block ids for a given blob must be the same length. </p>
data
Flowable<ByteBuffer>

The data to write to the block. Note that thisFlowable 

</code> must be replayable if retries are enabled (the default). In other words, the Flowable must produce the same data each time it is subscribed to. </p>
length
long

The exact length of the data. It is important that this value match precisely the length of the data emitted by theFlowable 

</code> . </p>
leaseAccessConditions
LeaseAccessConditions

LeaseAccessConditions

context
Context

Context 

</code> offers a means of passing arbitrary data (key/value pairs) to an <xref uid="" data-throw-if-not-resolved="false">com.microsoft.rest.v2.http.HttpPipeline</xref>'s policy objects. Most applications do not need to pass arbitrary data to the pipeline and can pass<code>Context.NONE 

</code> or<code>null 

</code> . Each context object is immutable. The<code>withContext 

</code> with data method creates a new<code>Context 

</code> object that refers to its parent, forming a linked list. </p>

Returns

Emits the successful response.

Remarks

Sample Code

Warning

It looks like the sample you are looking for has moved! Rest assured we are working on resolving this.

For more samples, please see the Samples file

Applies to