我从blob格式的数据库中获取图像.我想将它转换为Bitmap image.the我用来将位图转换为Blob的代码放在下面.但请告诉我如何反转它.???
ByteArrayOutputStream boas = new ByteArrayOutputStream();
btmap.compress(Bitmap.CompressFormat.JPEG, 100, boas ); //bm is the bitmap object
byte[] byteArrayImage = boas .toByteArray();
String encodedImage = Base64.encodeToString(byteArrayImage, Base64.DEFAULT);
Run Code Online (Sandbox Code Playgroud)