2013-03-02 508 views

回答

0

轉換的ByteArrayOutputStream以Byte數組

byte[] data = baos.toByteArray(); //baos is your ByteArrayOutputStream object 

他們使用BitmapFactory

Bitmap bmp = BitmapFactory.decodeByteArray (data,0,data.length, null); 

出它創建位圖他們把你ImageView並設置其位圖

imageView.setImageBitmap(bmp); 
相關問題