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

Incompatible streams with raw values from unstorage when used in sendStream #623

Open
GalacticHypernova opened this issue Jan 20, 2024 · 0 comments · May be fixed by #624
Open

Incompatible streams with raw values from unstorage when used in sendStream #623

GalacticHypernova opened this issue Jan 20, 2024 · 0 comments · May be fixed by #624

Comments

@GalacticHypernova
Copy link
Contributor

Environment

N/A

Reproduction

https://github.com/GalacticHypernova/NuxtFailTest

Steps:

  1. npm install
  2. npm run dev
  3. navigate to localhost:3000/images/Test2.jpg
  4. profit

Describe the bug

When sending streams of images using sendStream, it complains that the stream of the item is not compatible. That is beause, from what I understood, it takes the raw file content which is a buffer of bytes, and the sendStream function expects an object with pipe or pipeTo properties.

Additional context

This doesn't occur when using createReadStream from node:fs

Logs

No response

@GalacticHypernova GalacticHypernova linked a pull request Jan 20, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant