Get Blob image and convert that image into Bitmap image

前端 未结 2 624
野性不改
野性不改 2020-12-31 17:19

I am getting image from database in blob format. i want to convert it into Bitmap image.the code i used to convert bitmap to Blob is put below.but please tell me how to reve

2条回答
  •  萌比男神i
    2020-12-31 17:52

    This will work

    byte[] byteArray = DBcursor.getBlob(columnIndex);  
    
    Bitmap bm = BitmapFactory.decodeByteArray(byteArray, 0 ,byteArray.length);
    

提交回复
热议问题