I want to store a video file in sqlite database and retrieve it from the database. I can store it in database with code that I have.
FileInputStream fileInputStream = new FileInputStream("/sdcard/download/video.mp4");
byte[] image = new byte [fileInputStream.available()];
fileInputStream.read(image);
ContentValues valuse = new ContentValues();
valuse.put("a",image);
db.insert("tb",null,valuse);
fileInputStream.close();
And I want to retrieve it from database and play it.