By danhanly
on Wed, 07/31/2013 - 11:03
I'm trying to send metadata from our CMS to VF but I keep getting a bad request.
I'm sending these headings:
TitleMessageLinkImage
The image is base64 encoded to a string and the full package is JSON encoded.
The addition method I've created base64 encodes the full package for sending.
Can anybody help debug why this is not working?
Bad Request when sending metadata
Can you provide any more details on what language you are using, and what errors you are getting back?
Presumably you have tried the Java samples and managed to get them working?
N
Bad Request when sending metadata
I'm working with the PHP samples.
I had them working, and I adjusted the code to accept the image as well.
Is there a size limit on the metadata?
Bad Request when sending metadata
Yes the metadata is limited to 200 KB if encoded in Base64, and 150 KB if plain text.
See: https://developer.vuforia.com/resources/dev-guide/adding-target-cloud-database-api
Bad Request when sending metadata
I still don't know what the issue is, however, I have fixed it...
Instead of running the add metadata transaction through my 'Update Target' script, I created an entirely new script for it, and it now works.