java - Store hig-res picture offline in Android -


i'm developing android application need help. need store 2000 image in high resolution (1024x768 , 2.5 mb each) , application must work offline can't retrieve them online database or anywhere else. these picture should stored in sqlite db inside application because each 1 of them related specific product.

i've tried convert picture base64 string result big , app crash. works if it's 467x300 , 30 kb loose quality not solution.

hope have helpful suggestions. thank you.

the way problem typically solved not store images in database, rather store link them in database. if want them private, store them in private app storage location. getting images database tricky, , editing binary blobs can tricky. can cause issues in database, might cause things slower. also, it's easier load images file database.

also, use blob, allows storing binary data. sqlite supports that, so...


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -