I need to extract some metadata for a system.
I already have the following code, which is working for all others metadata attributes I need to access.
using (Stream stream = new FileStream(imagePhysicalPath, FileMode.Open, FileAccess.Read, FileShare.Read))
{
var decoder = new JpegBitmapDecoder(stream, BitmapCreateOptions.None, BitmapCacheOption.None);
var metadata = decoder.Metadata ?? decoder.Frames[0].Metadata as BitmapMetadata;
if (metadata != null)
{
object job_identifier = metadata.GetQuery("/xmp/photoshop:TransmissionReference");
}
}
However, it does't work for the Job Identifier / Transmission Reference. How can I read this data from an Image?
The solution is to use this query instead:
/app13/irb/8bimiptc/iptc/{str=Original Transmission Reference}