-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hello,
Thank you for the project.
What I am doing wrong.
This browser test encode image to string
/** @param {Blob} img */
const test = img => {
// yEnc
img.arrayBuffer()
.then(arrayBuffer => console.log(dynamicEncode(new Uint8Array(arrayBuffer))));
// base64
const reader = new FileReader();
reader.onloadend = () => console.log(reader.result);
reader.readAsDataURL(img);
};yEnc string is 5.5 MB
base64 string is 4.7 MB
My goal is to store image in JSON.
Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels