Archived Forum Post

Index of archived forum posts

Question:

xmp.GetEmbedded(0) doesn't seem to be working

Jan 08 '13 at 15:54

I'm running this exact test code, and the xmp.GetEmbedded(0) is returning null no matter what. I know that it has data inside it, because the numberOfEmbedded returns 1. Data is inside, but this method doesn't seem to be working. Any ideas/fixes?

Chilkat.Xmp xmp = new Chilkat.Xmp();

xmp.UnlockComponent("anything for 30-day trial");

// Open a JPG containing XMP metadata.

xmp.LoadAppFile("Example.jpg");

int numberOfEmbedded = xmp.NumEmbedded;

Chilkat.Xml xml = xmp.GetEmbedded(0);


Answer

I'm not aware of any issue (meaning I haven't heard of the problem from other customers). If you wish, send the XMP sample file to support@chilkatsoft.com and I'll have a look..


Answer

I tested with your JPG, but found no problem. Please let me know what .NET Framework you're using and I'll send you a new build for testing. Maybe you're using an old version that had a problem?