public static String getXmpXml(final byte[] bytes) throws ImagingException, IOException {
        return getXmpXml(ByteSource.array(bytes));
    }
Extracts the embedded XML metadata as an XML string.

@param bytes Byte array containing an image file.
@return Xmp Xml as String, if present. Otherwise, returns null.
@throws ImagingException if it fails to parse the image
@throws IOException      if it fails to read the image data
src/main/java/org/apache/commons/imaging/Imaging.java