not working Api for local files (base64 binary encoded data)
Not working Api for local files (base64 binary encoded data)
I converted test image from PHP example to base64 binarry data: (https://upload.wikimedia.org/wikipedia/commons/3/37/Dagestanimanand_woman.jpg) and after sending it to to endpoint I got always :
"message": "Decoding error, image format unsupported."
When I use in url mode it's working well , but in our project we can't use this toll in that way. Please post working example for PHP with passing local binary data of file.
Jernej Kavka commented
You need to send it as binary, not as base64.
Use something like https://webhook.site/ to verify if you are sending the image correctly.