Hi, I would like to know how to send the base64 string file as a input parameter, because in your documentation you say : “You must choose one of “inputurl” or “inputimage” as a parameter. If you choose “inputurl” as a parameter, you can enter something like “http(s)?/” or a base64 string.”.
When I try to send the Base64 String in the inputurl parameter, the API always respond:
{
“code”: “400”,
“status”: “FAILED”,
“message”: “Sorry,something was wrong,please try again later.”
}
Thanks in advance for your help.
Regards
Приєднуйтесь до обговорення — додайте повідомлення нижче:
Hi thanks for your response. I made the request adding “data:image/jpeg;base64” and now I get a 200 Response, but with errorCode = 6
{“code”:“200”,“status”:“SUCCESS”,“data”:{“errorCode”:6}}
What is the reason of this error 6?
Thanks again for your help
Regards
Hi,please check if the Base64 string format is correct, e.g. if “data:image/jpeg;base64” is missing, e.g. “data:image/jpeg;base64,/9j/4 AAQSkZJRgABAQAAyADIAAD/4 QE6RXhpZgAATU0AKgAAAAgACAEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEaAAUAAAABAAAAbgEbAAUAAAABAAAAdgEoAAMAAAABAAIAAAExAAIAAAAlAAAAfgEyAAIAAAAUAAAApIdpAAQAAAABAAAAuAAAAAAAAADIAAAAAQAAAMgAAAABQWRvYmUgUGhvdG9zaG9wIEVsZW1lbnRzIDkuMCBXaW5kb3dzAAAyMDE0OjA1OjE0IDIxOjM2OjM3AAAIkAAABwAAAAQwMjIxkAQAAgAAABQAAAEekQEABwAAAAQBAgMAoAAABwAAAAQwMTAwoAEAAwAAAAEAAQAAoAIABAAAAAEAAA …”.