Localstorage have storage limit between 5MB to 10MB depends upon browser.My question is,Is there any way to store large json data into external .js file.so we can read/write data as like localstorage??
-
You don't mean on the client, do you?artm– artm2016-01-11 06:16:33 +00:00Commented Jan 11, 2016 at 6:16
-
I developing mobile app using phonegap.i m using localstorage for database.i want to increase size of that.localstorage hv its specific size.so i want to store my json data into external js file.so i can use it like localstorage..Maheshvirus– Maheshvirus2016-01-11 06:19:03 +00:00Commented Jan 11, 2016 at 6:19
-
Phonegap provides Storage API. Why not use that?Allen King– Allen King2016-01-11 06:37:19 +00:00Commented Jan 11, 2016 at 6:37
-
@Allen King.. Can you please provide me a link?Maheshvirus– Maheshvirus2016-01-11 06:42:21 +00:00Commented Jan 11, 2016 at 6:42
-
Here docs.phonegap.com/en/1.2.0/phonegap_storage_storage.md.htmlAllen King– Allen King2016-01-11 06:44:17 +00:00Commented Jan 11, 2016 at 6:44
|
Show 4 more comments
1 Answer
For PhoneGap (or Apache Cordova), you want to use the file system to write to the file. See the File plugin (https://www.npmjs.com/package/cordova-plugin-file) for more information.