我正在使用 ExifInterface 在我的 Java Android Studio 应用程序的 jpeg 文件中读取 UserComments EXIF 标记。
我可以在 Linux 中使用 exiftool 命令来验证 UserComment 字段中是否有数据。
ExifInterface exif = new ExifInterface(inputStream);
String s = exif.getAttribute(ExifInterface.TAG_USER_COMMENT);
运行时,字符串 s 包含“UNICODE”。
知道这是怎么回事吗?
另外,我计划阅读其他 EXIF 标签。我可以多次调用 getAttribute() 还是需要以某种方式在调用之间重置流?
提前致谢!