Skip to content

How to write DownloadDirectoryAsync response in a Stream.  #298

@mathieu-fournier

Description

@mathieu-fournier

Which service(blob, file) does this issue concern?

blob

Which version of the SDK was used?

2.0.4

On which platform were you using? (.Net Framework version or .Net Core version, and OS version)

.Net 6 and Windows 10

What problem was encountered?

Hi o/,
I am trying to download all blobs in a container with DownloadDirectoryAsync.
The only option I see is to download it in a destination file.
How can I write the response in a Stream instead ?

Example :
image

Have you found a mitigation/solution?

I've tried listing blobs and downloading them into a stream. (I have over 5000 small blobs)
The issue with that approach is a low overall download speed due to the latency of azure storage.
For each blob I get ~50 milliseconds of latency and ~5 milliseconds of download time.
So the service is only downloading a blob ~9% of the time.
This results in a ~1000 Kb/sec download speed for the directory.

Thanks (:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions