java - Generic method of converting SQLite BLOB to byte array (POJO) -


i working third party sqlite database. has blob column may contain image, video or audio file. of course, there column specifies mime type of blob. question is, there generic way of converting blob byte array , byte array blob. have seen tons of examples around web specific images. looking generic method of working blob regardless of it's type.

note: know not idea save these types of files in db in case have no choice.

the android database api used byte arrays represent blobs; no conversion needed.


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -