Bitmap foto = b.getBitmap();
byte[] bytes = null;
ByteArrayOutputStream ba = new ByteArrayOutputStream();
foto.compress(Bitmap.CompressFormat.JPEG, 100, ba);
foto.recycle();
foto = null;
bytes = ba.toByteArray();
String bBytes = Arrays.toString(bytes);
I'd like this method to return a String of the Byte values. For example, it would be : "12,23,34 ....".