"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

Upload image through VWS API

Hi,

I'm meeting some issues on upload image with the JAVA example provided by Vuforia.

I have been really cautious on Field Name type according to [url=https://developer.vuforia.com/library/articles/Solution/How-to-Add-a-Target-Using-VWS-API] VWS API[/url]. However, I'm still getting a "Fail" error message which is not really explicit :

{"result_code":"Fail","transaction_id":"cdb4ab42bc5a40a88fd6eaadf20e1a5f"}

All the other functions in the example seem to work.

Does anyone succeed in making this work or is this API road down ?

 

Thank you.

Hey,

I am facing the same problem. Even nobody from Vuforia support is responding. Please let me know if anyone has the fix.

Thanks.

Neelesh

Tue, 05/16/2017 - 22:14

In reply to by Neelesh

Got the Fix and this is amazing:

Just replace the line in the PostNewTarget.Java code :

Replace this: requestBody.put("image", Base64.encodeBase64(image));