Search code examples
androidcameragpsmetadataexif

I want to read exif info in image in android. I can read exif from image in gallery but i cannot read exif photo taken from the camera


Example image

As shown in the figure above.I chose the take a picture exif information is null. I chose image from phone option and exif information is not null.


Solution

  • You cannot read exif data from a Stream using the android api. ExifInterface doesn't have a constructor with an InputStream.

    However, You can use the metadata-extractor and use the constructor with an InputStream to build an InputStream backed by your byte[] using a ByteArrayInputStream