5

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.

Tom Sabel
  • 3,935
  • 33
  • 45
Cengiz
  • 63
  • 1
  • 1
  • 8

3 Answers3

3

It is now possible to read EXIF data from streams through the ExifInterface Support Library.

compile "com.android.support:exifinterface:25.1.0"

Source: https://android-developers.googleblog.com/2016/12/introducing-the-exifinterface-support-library.html

Rejinderi
  • 11,694
  • 2
  • 31
  • 40
2

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

1

Android API do not read EXIF from Stream.

Check this one - https://stackoverflow.com/a/12952370/842607

Community
  • 1
  • 1
Jimit Patel
  • 4,265
  • 2
  • 34
  • 58