jepiqueau / vue-sqlite-app-starter

Ionic/Vue App Starter demonstrating the use of @capacitor-community/sqlite
MIT License
18 stars 4 forks source link

How to import and export encrypted database - Capacitor Sqlite Plugin? #5

Open sadamameer opened 1 year ago

sadamameer commented 1 year ago

Hello developers,

I am using the capacitor sqlite plugin with vue.js and developing the native mobile apps. The issue I am facing is, after encrypting the database the exportToJson function does not provide the valid json that could be imported later. This is generating some expData object having base64 encoded string.

My question is how could I import this base64 encoded string by using importFromJson method? Currently its showing invalid json all the time.

Please help as soon as possible.

Thanks and keep the good work up.