Monday, June 27, 2011

Store image / audio / video in Database using SQLite

Its is quite easy to store information like TEXT, INTEGER etc into the Database using SQLite. How many people know that we can store large images / audio / video in Database ?

I dint know it until I wanted to do it. And here come the solution. We can convert the images / audio / video into binary data and then store it in BLOB format. And, BLOB refers to a Large Binary Object.

Refer the code, how the bitmap image can be converted into binary data and reverted back to bitmap.