Java metadata read and write

2019-05-13 17:46发布

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.

2条回答
够拽才男人
2楼-- · 2019-05-13 17:52

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.

查看更多
再贱就再见
3楼-- · 2019-05-13 17:55

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.

查看更多
登录 后发表回答