Skip to content

uint8ArrayToBase64 but for ArrayBuffer #23

Closed

Description

@fregante

Same same but different (method)

ArrayBuffer support is suspiciously absent from the library, so I find myself doing multi-conversions myself, like:

const arrayBuffer = await response.arrayBuffer();
const content = uint8ArrayToBase64(new Uint8Array(arrayBuffer));

Why not add support for it across the board?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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