Download the metadata extractor from the link here ...... click to download the library select version 2.5.0.RC-3.zip
Extract a pack of jar
and import the jar into the libs folder in your project, and then execute the code below
try { InputStream is = new URL("your image url").openStream(); BufferedInputStream bis = new BufferedInputStream(is); Metadata metadata = ImageMetadataReader.readMetadata(bis,true); for (Directory directory : metadata.getDirectories()) { for (Tag tag : directory.getTags()) { System.out.println(tag); } } } catch (ImageProcessingException e){} catch (IOException e) {}
source share