Skip to content

Decode Base64 string to ArrayBuffer correctly #29

@flowersinthesand

Description

@flowersinthesand

HTTP streaming transport decodes a base 64 string chunk into an ArrayBuffer to deal with binary data. The current implementation may have some bugs in that a byte sequence may not be a valid unicode character and a unicode character may not be one byte.

https://github.com/niklasvh/base64-arraybuffer/blob/master/lib/base64-arraybuffer.js looks like a good fallback.

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