1

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??

9
  • You don't mean on the client, do you? Commented 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.. Commented Jan 11, 2016 at 6:19
  • Phonegap provides Storage API. Why not use that? Commented Jan 11, 2016 at 6:37
  • @Allen King.. Can you please provide me a link? Commented Jan 11, 2016 at 6:42
  • Here docs.phonegap.com/en/1.2.0/phonegap_storage_storage.md.html Commented Jan 11, 2016 at 6:44

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.