I have a jpg file which have been classified with Azure Information Protection client. So its XMP metadata contains some MSIP Label information. For example:
MSIP_Label_ff1f1c9d-2f92-4a17-8c74-5b298b531414_Name: Confidential
When I tired to extract this information with the following code but I only managed to print the “dc:creator”.
Code snippet:
using (JpegImage image = (JpegImage)Image.Load(path))
{
var xmpData = image.XmpData;
if (xmpData != null)
{
foreach (XmpPackage package in xmpData.Packages)
{
Console.WriteLine($"Package XmlValue: {package.GetXmlValue()}");
}
}
}
I opened the jpg file with an editor, checked the xmp metadata and what I noticed that the MSIP Labels are located in the “rdf:Description”. Could you help me how can I get this information through the XmpPacketWrapper?
sample-file.zip (1.8 MB)
Aspose.Imaging .NET 20.4 version
Thanks,
Gabor