We are developing a Hypbrid application in Ionic. Our client asked a B2B sales application that needed to work online and offline.
Our application fetches all our data from a MySQL database and saves all the data to a Sqlite db.
We have about 9000 products that we store and every product has a couple of images (in total approx. 40.000 images).
The images are synced in base64 encoding and are then converted to a jpg that we save locally on the tablet.
The only problem that we are facing right now is that we don’t have the permission to show the image in the view.
We always get this error: “Not allowed to load local resource: file:///var/mobile/Containers/Data/Application/03DA2D04-BEDB-404A-990B-06F3CF84B209/Library/NoCloud/img_products/12407.jpg”
Does anybody know how to fix this problem?
Are we storing the images in the wrong directory or retrieving them in an incorrect way?
hi , i am facing same problem , i am saving image in external root directory it’s showing also in device but when in trying to show in getting not allowed to load local resources,