Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Issue with setting metadata
ani_rvce
Hi All,
I am facing issues while ingesting image with metadata.
The ingestion works fine when metadata has no Spanish characters like (é) ..
But when there is a Spanish characters , then the ingestion is failing with “Primitive Exception” .
Here is my code snippet which sets runtime parameters.
Any help is really appreciated ..
Working test data
[html]
string testData = @"
<metadata>
Alt Text
{38841910-E601-472C-9EE3-00CF0EFBB5D4}
Karma Kafe
";
[/html]
Not working
[html]
string testData = @"
<metadata>
Alt Text
{38841910-E601-472C-9EE3-00CF0EFBB5D4}
Karma Kafé
";
[/html]
[html]
string testData = @"
<metadata>
Alt Text
{38841910-E601-472C-9EE3-00CF0EFBB5D4}
Karma Kafe
";
MediaBinServiceProxy MedBin = new MediaBinServiceProxy();
MBRunTimePrimitive[] Rtp = null;
MBRunTimeParameter Parameter = null;
MBRunTimeParameter[] RunTimeParams = new MBRunTimeParameter[1];
MBPrimitive[] MPrimitives = Task.mPrimitives;
MBPrimitive MetadataAdder = MPrimitives[0];
MBParameter[] PrimParams = MetadataAdder.mParameters;
Parameter = new MBRunTimeParameter();
Parameter.mID = PrimParams[0].mID;
Parameter.mElements = new MBParameterElement[] { new MBParameterElement() { mValue = testData } };
RunTimeParams[0] = Parameter;
MBRunTimePrimitive Prim = new MBRunTimePrimitive();
Prim.mID = MetadataAdder.mID;
Prim.mParameters = RunTimeParams;
Rtp = new MBRunTimePrimitive[] { Prim };
}
[/html]
Find more posts tagged with
Comments
Migrateduser
You can try the code-page (6th parameter) in the MBWebService's insertion call. You can set this to code-page that supports these extended characters.
ani_rvce
I have tried , applying xml directly on the Mediabin task using desktop client and there also it failed. looks like it's an issue with the product. i have raised a ticket with support team to get more details on this issue.
Thanks.
Regards,
Anand