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

Writable stream's write method doesn't work with Uint8Array #627

Open
desaikd opened this issue Sep 9, 2020 · 0 comments
Open

Writable stream's write method doesn't work with Uint8Array #627

desaikd opened this issue Sep 9, 2020 · 0 comments

Comments

@desaikd
Copy link
Contributor

desaikd commented Sep 9, 2020

While using Writable stream to write Uint8Array on command line(process.stdout) using write method of Writable stream throws runtime error stating "Invalid data, chunk must be a string or buffer, not object". But the write method document suggests that it supports Uint8Array. Although the error message went away when switched to any data type rather than Writable.

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