Skip to content

Byte length not same as content-length #113

@devksingh4

Description

@devksingh4

Hello,
When I am downloading arbitrary data stored in B2 bucket, the content-length header has the correct byte length of 208374 but when I call:

Buffer.byteLength(resp.data)

where resp is the await return value from b2.downloadFileById(), I get 378415. Even the backblaze UI shows that the size is 208.4 kB. What is the correct way to decode the data sent from the downloadFileById() method to get the correct-size Buffer or Uint8 array?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions