Android: how to get bytes instead Image from Camera [duplicate]
Is there is way to tell to:
Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE );
do not create images at all, but return data in [] bytes
??
You may want to use startActivityForResult
to get the image and the convert it yourself:
Get the image using the method in the accepted answer of this question: Android camera intent
and convert the resulting bitmap to a byte array as in this one: converting Java bitmap to byte array
精彩评论