Skip to content

[IDEA] feat: Attachment.content allow streams/buffers #406

@jkowalleck

Description

@jkowalleck

Putting large texts into Attachment.content multiple times might require lots of memory.

Proposal: have an option to allow Attachment.content to be streams/buffers, that are only read/processed when it comes to normalizing the data?

Attention: check compatibility for browsers. For node streams and buffers exist.
But they are not part of the common JavaScript implementation ala ES.
As long as there is no clear path, this feature stays just an IDEA.

The thing is, that the Attachment.encoding and the buffer's content might cause some interference,
when the encoding claimed to be base64, but the buffer is not in binary mode, so there is no chance to fetch and convert it properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions