RoomDb-Sample icon indicating copy to clipboard operation
RoomDb-Sample copied to clipboard

Save Image

Open DivyeshKevadiya opened this issue 5 years ago • 1 comments

How to save image in android room database?

DivyeshKevadiya avatar May 11 '19 13:05 DivyeshKevadiya

You would have to save the image file to local storage first and then retrieve the image path and image name, these two can be stored on separate columns in your room database.

To retrieve the image use the path and name and standard file io operations.

I have a similar project where this was done, hit me up if you need the code repo link.

BobbyBriQz avatar Jan 09 '20 16:01 BobbyBriQz