简体   繁体   中英

Android sqlite-store large file

I am using sqlite DB in my android application.(created the db in sdcard)

is this possible to insert single large file into db.(say around 20-30mb)

if not what is the alternative solution.and what is the size limitation to insert

For size limitations, see this post .

An alternative is to place whatever this "large file" is in the assets folder.

What exactly is the scenario?

SQLite can handle large amount of data, the problem here is the device's limits. If you are going to store more than 10MB , you should consider saving that data in an external server and access it via the Internet. If you are building an application that use large amount of data, usually the application don't use all data all the time, so you can save in cache (in a local database) . if your db file is limited in size less than 10 MB you can encrypt them and put it in the sdcard

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM