Log in or register to post comments

Upload image through VWS API

January 28, 2016 - 2:29am #1

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 VWS API. 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.

Upload image through VWS API

May 16, 2017 - 3:14pm #3

Got the Fix and this is amazing:

Just replace the line in the PostNewTarget.Java code :

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

with this: requestBody.put("image", new String(Base64.encodeBase64(image), "UTF-8"));

And it will start working. Finally, I got it :)

Upload image through VWS API

April 15, 2017 - 12:11am #2

Hey,

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

Thanks.

Log in or register to post comments