I want to put an image from camera to database using this database code. What should be the code for the save button and the preview button?
public class dat
Generally we don't store an image in the sqlite database as it takes a lot of time and is not encouraged but instead we store the image in the private internal storage of our app and we store the name of the image in our sqlite database and thus fetch them accordingly. Databases are not meant for storing images but only text if you try to store images it will lead to large read and write time overheads. You can store the image in internal storage as explained here https://developer.android.com/training/data-storage/files