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

Better serialization for Blob and File #15

Open
lxsmnsyc opened this issue Apr 17, 2023 · 2 comments
Open

Better serialization for Blob and File #15

lxsmnsyc opened this issue Apr 17, 2023 · 2 comments

Comments

@lxsmnsyc
Copy link
Owner

Currently Blob and File relies on ArrayBuffer serialization, which means it uses the Uint8Array indirectly. This serialization form is accurate, but is probably too large for consideration. Blob accepts Uint8Array, ArrayBuffer, DataView and string, so it's probably ideal if the string format can be utilized instead.

@lxsmnsyc lxsmnsyc mentioned this issue Oct 14, 2023
@lxsmnsyc
Copy link
Owner Author

lxsmnsyc commented Nov 7, 2023

@MengLinMaker
Copy link

Would you recommend converting Uint8Array to base64 and back?

Sending ArrayBuffer from SolidStart.js use server is slow. Not too sure where the bottleneck is.

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

No branches or pull requests

2 participants