How to save captured image from camera or selected from gallery image in sqlite

In my app when i take a picture from camera or gallery and shows that image on screen and when i proceed and again come back to that image page all images are gone. I’m trying to save this image until clear the cache. Please help me how to do this i’m very new in ionic.