'Handle BLOB images with Export To JSON workflow

I store images like so on the Sqlite table and all are working fine.

Image BLOB NULL,

But I have an issue with the Export To JSON workflow. i.e. since that blob size is around 4MB I cannot use it to send API due to its huge size. I use Firebase Storage for the images on online-only apps. But since this is an offline-first app how to handle this kind of issue? Please let me know the correct workflow here.

I use this Capacitor plugin

Note: Here I need to send a lot of such records to the API at once. That is a huge load on the API. And this is from a mobile device too.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source