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

Download of some items fail with "RangeError: byte length of Uint16Array should be a multiple of 2" #6

Open
afzalsayed96 opened this issue Oct 17, 2020 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@afzalsayed96
Copy link
Owner

Screen Shot 2020-10-18 at 12 09 15 AM

The problem's in https://github.com/antfu/icones/blob/master/src/utils/bufferToSring.ts but I haven't figured out a solution so far.

Related links:
https://stackoverflow.com/questions/26754486/how-to-convert-arraybuffer-to-string
https://stackoverflow.com/questions/20919525/how-to-pad-an-arraybuffer-to-a-multiple-of-4

Using Uint8Array as suggested by many does not work with zip (binary) files :(

cc: @antfu

@afzalsayed96 afzalsayed96 added bug Something isn't working help wanted Extra attention is needed labels Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant