Skip to content

Why is ByteVector.toByteArray() deprecated/internal? #118

@smoores-dev

Description

@smoores-dev

Howdy! This library is fantastic, I can't thank you enough for maintaining it.

Let's say I'm extracting the cover image from an audio file to return in a node.js Response. I'd like to be able to pass the bytes from that image directly to the Response constructor.

It seems that the only way to do this is via picture.data.toByteArray(), which is totally fine. But... why is this marked as internal/deprecated? Is there some other, more idiomatic/safe way to approach this that I'm missing?

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