Jim
Jim

Reputation: 274

Java metadata read and write

Is it possible in a generic way (for all image types) to be able to read and write metadata in Java, i've found a few examples but they are always specific, for JPEG or PNG for example. I need something generic enough to not if else statement everywhere.

Upvotes: 3

Views: 3944

Answers (2)

Mercutio Calviary
Mercutio Calviary

Reputation: 184

I don't want to rewrite the source but here is an great example

http://johnbokma.com/java/obtaining-image-metadata.html

Look at the readandDisplayMetaData function and it will give you an idea.

Upvotes: 2

user1886876
user1886876

Reputation:

Every file format has a different way of storing metadata. Asking for a generic way to read and write metadata is like asking for a generic way to read and write all file formats.

Upvotes: 1

Related Questions