By c4m1l0
on Fri, 01/11/2013 - 20:35
Hi everybody. From 2 days ago im working with the VWS Api trying to update targets from the java example. This work for me fine when i update de image from a local file and the metadata from a string. But the problem is when i try to update de image and the medatada from a url. Thanks for your help.
This is the requestBody of the .java xample, this work fine, create the Target perfectly
File imageFile = new File(imageLocation);if(!imageFile.exists()) {System.out.println("File location does not exist!");System.exit(1);}byte[] image = FileUtils.readFileToByteArray(imageFile);requestBody.put("name", targetName); // MandatoryrequestBody.put("width", 320.0); // MandatoryrequestBody.put("image", Base64.encodeBase64String(image)); // MandatoryrequestBody.put("active_flag", 1); // OptionalrequestBody.put("application_metadata", Base64.encodeBase64String("ejemplo2.json".getBytes())); // Optional -------------------------------------------------When i change the image ande the metada for url like in this code, recive this {"result_code":"Fail","transaction_id":"2ebab70578bf460da5914e1dfdd8fb8b"} Whats is wrong here??? PLease help requestBody.put("name", targetName); // MandatoryrequestBody.put("width", 320.0); // MandatoryrequestBody.put("image_url", "http://zineztezia.com/targets/Bambuco2012.jpg"); // MandatoryrequestBody.put("active_flag", 1); // OptionalrequestBody.put("application_metadata_url", "http://zineztezia.com/cloudAR/hola.txt"); // Optional
Hi, I've forwarded your issue
Hi,
I've forwarded your issue to our technical team, so to investigate it; I will report to you as soon as I get some news
(don't hesitate to ping me if you don;t hear any feedback soon)
Similar problem
Hi
Hi chiwo, are you saying that
Hi chiwo, are you saying that you're not able to put any metadata even when uploading the file directly ? (or does it only happen when you use the metadata_URL like in the report of the previous post from c4m1l0 ) ?
I m not able put any metadata
I m not able put any metadata when uploading the file directly and I m not able put metadata via metadata_url. If i put metadata directly, target manager show download link for metadata package but file has 0 bytes size and it havent content.
Metadata file size 0
I have a similar problem.
I have update the metadata but the file size is 0
Hi all, a few updates: @
Hi all, a few updates:
@ c4m1l0: the image_url and the metadata_url are currently not supported; in this regard, the Documentation is incorrect and will be updated to reflect this.
Just verified that the
Just verified that the metadata text file which is downloaded via the Web Portal (Target Manager) interface is indeed zero-sized.
This has been brought to the attention of our engineering team.
I try cloud recognition
I try cloud recognition sample for unity and metadata are returned in right format. That only problem is download from target manager on web. And i have one "problem" or question. If I upload target from php via vws api I m not able update target to time, when cloud process my target.
Hi, the fact that you need to
Hi, the fact that you need to wait for the target to exit the "processing" state is the normal functionality;
BTW, the Java samples also show a "polling" technique to periodically check the target status after a POST;
I try cloud recognition
Pls delete this post. I post it twice.
Thanks for answer.
Thanks for answer.
Image_Url application_metadata_url Problem
@ ALL:
important update: it is now possible to correctly download the metadata file (issue has been resolved and system updated).
Image_Url application_metadata_url Problem
Thank you so much!!!!!!!!!!!!!!!!
Image_Url application_metadata_url Problem
You're welcome.