Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 82 by
aT5y3...@gmail.com: NoSuchMethodError
http://code.google.com/p/metadata-extractor/issues/detail?id=82
Problem with metadata-extractor version 2.6.4
After I use the ImageMetadataReader to create a Metadata object, when I try
to get the directories I get the following output:
Number of Directories: 3
Exception in thread "main" java.lang.NoSuchMethodError: Exception in
thread "main" java.lang.NoSuchMethodError:
com.drew.metadata.Metadata.getDirectories()Ljava/lang/Iterable;
at TestingClass.main(TestingClass.java:19)
Here is the code:
public class TestingClass {
public static void main(String[] args){
File jpegFile = new
File("C:\\crawler_data\\data50\\1ce76f40c94f263aec9f1c9c37de9a61.jpg");
Metadata metadata = null;
try{
metadata = ImageMetadataReader.readMetadata(jpegFile);
} catch (Exception e){
System.out.println("Error");
}
if (metadata != null){
System.out.println("Number of Directories: " +
metadata.getDirectoryCount());
Iterable<Directory> directories = metadata.getDirectories(); //line 19
for (Directory directory : directories) {
for (Tag tag : directory.getTags()) {
System.out.println(tag);
}
}
}
}
}
The image used is attached.
Attachments:
1ce76f40c94f263aec9f1c9c37de9a61.jpg 39.5 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings