Save images locally using SQLite

i want to capture images with my app, either from camera or from the users library. i need to store them local in the apps directory.