我不太确定你想要什么
如果要
Bitmap
直接从流中创建-instance,则可以使用BitmapFactory
它Bitmap
,ImageView
然后在-instance中显示它:Bitmap image = BitmapFactory.depreStream(stream);
imageView.setImageBitmap(image);
如果要将基数2的字符串表示形式转换回二进制数组,也可以使用
BigInteger
:BigInteger bigInt = new BigInteger(s, 2);
byte[] binaryData = bigInt.toByteArray();



