Skip to content

feat: Support binary data in FileSystem API #10

Open
@imhoffd

Description

@imhoffd

Feature Request

Plugin

FileSystem

Description

The FileSystem plugin should support binary data when using appendFile, readFile, and writeFile. An encoding key could be provided when working with utf8 encoded data.

To represent binary data in JS, Blobs (part of the File API spec) should be used because they best represent file contents: immutable, potentially (but not necessarily) encoded, potentially (but not necessarily) with an associated mime type. Blobs can be converted to ArrayBuffers or streams for alternative use cases.

Platform(s)

  • Android
  • iOS
  • Web (IndexedDB supports Blobs)

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions