Share via


cloud_page_blob::upload_from_stream_async Method

Intitiates an asynchronous operation to upload a stream to a page blob.

pplx::task<void> upload_from_stream_async(
   concurrency::streams::istream source
);

pplx::task<void> upload_from_stream_async(
   concurrency::streams::istream source,
   int64_t sequence_number,
   const access_condition& condition,
   const blob_request_options& options,
   operation_context context
);

pplx::task<void> upload_from_stream_async(
   concurrency::streams::istream source,
   utility::size64_t length
);

WASTORAGE_API pplx::task<void> upload_from_stream_async(
   concurrency::streams::istream source,
   utility::size64_t length,
   int64_t sequence_number,
   const access_condition& condition,
   const blob_request_options& options,
   operation_context context
);

Parameters

  • source
    The stream providing the blob content.
  • condition
    An azure::storage::access_condition object that represents the access condition for the operation.
  • options
    A azure::storage::blob_request_options object that specifies additional options for the request.
  • context
    An azure::storage::operation_context object that represents the context for the current operation.
  • length
    The number of bytes to write from the source stream at its current position.
  • sequence_number
    A user-controlled number to track request sequence, whose value must be between 0 and 2^63 - 1.

Return Value

A pplx::task object that represents the current operation.

Requirements

Header: blob.h

Namespace: azure::storage

See Also

Reference

cloud_page_blob Class