Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this library supports AsyncIterator<Uint8Array> ? #21

Open
raskyer opened this issue Sep 25, 2022 · 1 comment
Open

Does this library supports AsyncIterator<Uint8Array> ? #21

raskyer opened this issue Sep 25, 2022 · 1 comment

Comments

@raskyer
Copy link

raskyer commented Sep 25, 2022

By using @remix/remix-run and its multipart feature, we receive an AsyncIterator as data.

In order to easily upload to Azure storage, we need to transform this AsyncIterator to :

  • ArrayBuffer / Blob
  • or Readable Stream

Does this library can handle such AsyncIterator? I can see in the ts types an AsyncIterator but of buffer or string not Uint8Array.

Thanks

@sindresorhus
Copy link
Owner

It does not currently support Uint8Array, but it's something I'm willing to support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants