I would like to obtain the byte array of a JPEG image without using the following method:
bitmap = BitmapFactory.decodeFile("/sdcard/photo.jpg");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
bitmap.compress(CompressFormat.JPEG, 50, baos);
byte[] data = baos.toByteArray();
Is there anyway to do this?