我有这个问题:我想将一个base64字符串表示为来 self 的android应用程序中的php页面的图像(字符串base64工作正常并且效果很好),所以我这样做了:
byte[] gzipBuff = Base64.decode(json_data.getString("immagine"),0);
ByteArrayInputStream memstream = new ByteArrayInputStream(gzipBuff, 0, gzipBuff.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream(gzipBuff.length);
baos.write(gzipBuff);
Bitmap bmp = BitmapFactory.decodeStream(memstream);
ImageView image = new ImageView(this);
image.setImageBitmap(bmp);
我看不到 ImageView
最佳答案
关于java - 从 base64.decode 创建 imageview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5441413/