Use of various good quality images on sqlite

Asked

Viewed 369 times

0

I need to address a question of how to best use recording several images of good resolution in the database. Better definition would be to perform any and all operation of the sqlite on several images of various resolutions of good quality. I saw something about using blob and recording in byte array and wanted to see if it’s the best way. The app is a menu that will update the database images from time to time and will use a lot of research to popular imageviews among other components.

  • You can store the images on the SD card, and then when you need to cache them. I made the exact same app as you and that’s how I made it.

  • @Jorgeb. what do you mean by caching? How did you say you already did exactly that could answer the question.

  • 1

    @Math The question is "how do you best use various images?". The idea is to save the path (path) to the image in the Database(in a string). Then, through that path, upload the previously saved image to the SD card. You can and should use the Memorycache so you don’t have to constantly upload the image from the SD card, so the application stays more stable.

  • 1

    @Jorgeb, thanks for the comment. In case would be used this app on tablets that does not have SD. If the images are recorded in internal memory, it would be possible for me to read, change and delete them. Because the idea would be from time to time check on the server if there is an update of some data and update this information. The key to my question is minimum battery consumption and good performance.

  • I found this, I think it’s the best way to do it considering your consumption and performance assumptions. Anyway I would still use the Memorycache API’s that I mentioned earlier.

  • Did you find a solution? Poste as an answer to help other people.

  • Sorry for the delay... I had tested, but the above normal battery consumption exists in these cases and, I do not know if I am developing something wrong, the performance is below expected with some delays.

  • @Victorcs found some solution?

  • Wellington Avelino did not find a solution that consumes little battery and that is of good use.

  • @Victorcs, this app will run on tablets(restaurant table) ? It really needs to be in high quality?

  • Yes... want to focus the dishes (image).

  • @Victorcs, isn’t it feasible to save in internal memory? How big is each image?

Show 7 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.