views:

282

answers:

1

I called takePicture() and pass it a PictureCallback as a JpegPictureCallback. I'm seeing byte[] data input varies in size within onPictureTaken(). Can someone explain why this byte[]'s content size varies? I'm already setting picture size to a constant size with Camera.Parameters.setPictureSize();

Thanks!

A: 

That's just because the bytes array is the compressed jpg stream. As usually, jpg images' size vary depending on the image.

David Erosa