cboard-org / cboard

Augmentative and Alternative Communication (AAC) system with text-to-speech for the browser
https://www.cboard.io
GNU General Public License v3.0
658 stars 173 forks source link

Avoid save base64 images on MongoDb #1738

Open RodriSanchez1 opened 2 months ago

RodriSanchez1 commented 2 months ago

When a user uploads an image while offline, it is stored on the device as a base64 image. When the board is stored or updated in the database, the image is also saved as base64. This issue increases the database size and fills up the user's device memory.

Fix: We must implement a functionality to store the image as a blob in the Cboard blob storage before upserting the board into the database.