What format are the files in? You will likely have to convert them to a bitmap (easiest to work with development wise) then convert them back to their original type (probably jpeg or something compressed for web use). Without knowing the filetype you don't know the file headers (important) or the actual structure of the image data.
Post the code that shows how you are getting the data from the DB. Bitmap has a few static members that allow you to build one from a file, a stream, or another image. We'll need to figuire out the best way to construct it for you.
**how to solve invalid keystore error in android studio here is error report----------------------->
here is error report--------> error:Error:java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key palash from store "D:\MyApplication3.idea\workspace.xml": Invalid keystore format ...