I am new to Android Development. I am trying to store Image file location in Sqlite database. Image is received from Intent with any file manager or gallery. I want to store its real path into the database so i can retrieve it next time for any action. I don't want to use blob/dont want to store image in the database. I am not finding any better solutions. Please help.
相关问题
- Views base64 encoded blob in HTML with PHP
- How can I create this custom Bottom Navigation on
- How to get the background from multiple images by
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
You can store an image in database as bytearray or also store image URL as TEXT in sqlite dataBase
You can save the image path and always check if the path is valid or exists.
You can use an intent to pick up the image:
And get the image path:
With the path you can save it in the database.
Enjoy it!!
Try this
And also Override onActivityResult() method