在JAVA中,您可以使用Apache Sanselan库:
String newXmpXmlString = "<the><new/><xmp/><xml/></the>";File file = new File('path/to/file');new JpegXmpRewriter().updateXmpXml(new ByteSourceFile(file), new BufferedOutputStream(new FileOutputStream(file)), newXmpXmlString);对于上面概述的解决方案的更详细的示例,在Google Code上有一个开源项目,其中包含一个小型jPeg XMP XML
Trimmer。



