Hello, I really like your api but im having trouble sending base64 images taken by the phone’s camera and even if I type in the generated base64 string on rapid api, it throws internal server error, what am i doing wrong? I can only get it to work on urls.
아래에 의견을 추가하고 토론에 참여하세요.
//The brilliant CS has given me the answer!!! She/he is the best (I think Dan is just the bot’s name!)
//The answer is the base64string has to just lose the first part: “'data:image/jpeg;base64,” leaving just anything after the comma, so the below use “.split(,)[1]” to achieve it
var options = {
method: ‘POST’,
url: “https://api.luxand.cloud/subject/v2”,
qs: {“name”:email,“store”:“1”},
headers: {
‘token’: “…”
},
formData: {
photo: base64string.split(’,’)[1]
}
};
Hello ,
I am having the same problem. I am using Swift 5. I was able to successfully call “create person”, but I receive the following error when calling “Add face to person”:
Response= {
“status” : “failure”,
“message” : “Subject not found”
}
I have tried sending both a base64 encoded image payload or a URL payload. Both approaches gave me the same error.
Here is a snippet of the request code:
// url =URL(string: “https://api.luxand.cloud/subject/”)
// id = id return from Create Person
I am also facing the same issue. Please look into it.
Hello, thank you for a question. It seems like base64 code is incorrect. Can you image and base64 you have to info at luxand.cloud? We will check and answer.