"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Metadata package encoding issue

Dear Forum,

 

I have created an Android App by using the Cloud Reco sample provided by Vuforia. Everything works fine so far, I can upload target images through Vuforia Web Servies and retrieve them in the CloudReco activity without an issue.

 

If anyone has an idea about the following I would be more than glad to hear it.

My question is about the metadata and the way they are stored on the Vuforia servers. When I attach short Strings as metadata such as "test" or equivalent, the results.getMetadata() method works perfectly fine for me in the CloudReco activity. However, attaching a larger string such as an BASE64 encoded image leads to the situation where results.getMetadata() method causes a crash of my app. The metadata string is successfully passed to the server and the target image created. However, if I download the metadata package manually from the vuforia website it turns out to be badly formatted (below example snippet in UTF-8 encoding) :

 

����JFIF��C������JFIF��C�

 

During debugging I monitored that the string that is passed by my activity looks (of course) significantly different. 

Im quite sure the causes the app crash but unfortunately i have not been able to spot a discussion here in the forum that deals with the same issue. Due to the fact that I do not receive a "target image too large" response from the server during the upload I assume that the error is somewhere else on my end. 

 

If anyone has - or even better had - the same issue I would appreciate any input from your side(s). 

 

Best Regards,

Kevin

Attachment