we are using cropit for cropping image at client side then uploading base64 string to server , but some time for large images it crashes mobile browsers with low ram , is it good idea to convert base64 to blob [Creating a BLOB from a Base64 string in JavaScript then upload that on server or it will effect more mobile users as first image will be covered to based64 for cropping and then back to blob .
we are using cropit for cropping image at client side then uploading base64 string to server , but some time for large images it crashes mobile browsers with low ram , is it good idea to convert base64 to blob [Creating a BLOB from a Base64 string in JavaScript then upload that on server or it will effect more mobile users as first image will be covered to based64 for cropping and then back to blob .
Share Improve this question asked May 2, 2020 at 2:48 AlexAlex 1111 silver badge12 bronze badges1 Answer
Reset to default 7Base64 encoding takes up about a third more space than the original data. It was designed to safely send data through text (e.g. in mail bodies).
You're better off using the binary image, as it will be smaller and so quicker to upload.
Go with BLOB, mate.