I want to know if it is possible to store an image in a Sql Lite database. Thanks.
I want to know if it is possible to store an image in a Sql Lite database. Thanks.
The image would be saved as a bitmap array in a field that you have to define as BLOB
to get the bitmap array:
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
bitmap.compress(CompressFormat.PNG, 0, outputStream);
byte[] imagenDB = outputStream.toByteArray();
This link may help you:
I recommend that whenever you look for programming questions you will save looking for them in Spanish.