Skip to content

azure core needs to expose a way to return raw data in streaming #17145

@xiangyan99

Description

@xiangyan99
  1. Now we are calling into requests library and the default behavior is we de-compress the data if there is a "transfer-encoding' header or "content-encoding" header.
  2. In storage SDK, if user wants to download a big file from blob, storage sdk splits it into multiple 4m chunks.

Here is the broken case:
User uploads a big (>4m) gzipped file into blob and sets the content-encoding to gzip then he/she calls storage sdk to download the file.

Storage SDK splits it into multiple requests, for the non-first request, azure-core recognizes the "content-encoding" header and tries to decompress the stream -- fail

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.feature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions