I am getting this error:
Invalid value at 'requests[0].image.content' (TYPE_BYTES), "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/...
The image is encoded properly (it works using another visual search service that requires the same base64 encoding, metamind), what's wrong with this call?
This is from AngularJS $http
service:
$http({
method: "POST",
data: '{"requests":[{"image":{"content":"' + base64Img + '"},"features":[{"type":"LABEL_DETECTION","maxResults":1}]}]}',
url: "https://vision.googleapis.com/v1/images:annotate?key=mykey27272772277227292992929"
}).success(function (result) {
console.log("SUCCESS");
$scope.results = result;
console.log(result);
}).error(function (err) {
console.log("FAIL");
console.log(err);
});
Any idea?