AzureBlobProvider.DownloadToAsync Method

Namespace:
Weavy.Core.Providers
Assembly:
Weavy.Core.dll

Overloads

DownloadToAsync(Blob, Stream) Writes the binary data of the blob from the provider to the specified output stream.
DownloadToAsync(Blob, Stream, long, long) Downloads a range of bytes from the blob to a destination.

DownloadToAsync(Blob, Stream)

Writes the binary data of the blob from the provider to the specified output stream.

public Task DownloadToAsync(Blob blob, Stream output)

Parameters

blob
Blob

The file.

output
System.IO.Stream

The output stream where the data should be written.

Returns

System.Threading.Tasks.Task

DownloadToAsync(Blob, Stream, long, long)

Downloads a range of bytes from the blob to a destination.

public Task DownloadToAsync(Blob blob, Stream destination, long offset, long length)

Parameters

blob
Blob

A Blob object with metadata.

destination
System.IO.Stream

A System.IO.Stream to write the downloaded content to.

offset
long

The starting offset.

length
long

The number of bytes to download.

Returns

System.Threading.Tasks.Task