Skip to content

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

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?

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions