Skip to content

arrayBuffer() should be used here since there is no bytes() method in Browser. #84

@gahoo

Description

@gahoo

const { key, ciphertext } = await genAndEncrypt(encryptionScheme, await editorState.file.bytes())

arrayBuffer() should be used here since there is no bytes() method in Browser.

const fileContent = await editorState.file.arrayBuffer()
const { key, ciphertext } = await genAndEncrypt(encryptionScheme, new Uint8Array(fileContent))

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