Bitmap bitmap=BitmapFactory.decodeResource(getResources(), R.drawable.images);
ByteArrayOutputStream stream=new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 90, stream); // what 90 does ??
byte[] image=stream.toByteArray();
bitmap.compress(Bitmap.CompressFormat.PNG, 90, stream);
中的90是什麼意思?將圖像轉換爲android中的字節數組
的可能的複製[如何圖像轉換成字節數組和字節數組爲base64字符串中的Android?](http://stackoverflow.com/questions/10513976/how -to-convert-image-into-byte-array-and-byte-array-to-base64-string-in-android) – Ironman