Not a valid base64 image

url:https://api.ocr.space/parse/image
Method: POST
Content-Type: application/x-www-form-urlencoded
apikey=c413eba7…&base64Image=data:application/pdf;base64,JVBERi0xLjIgDQol4uPP0w0KIA0KO…

In the result we read:
Not a valid base64 image
Even when we send the “Test BASE64 string” from https://ocr.space/OCRAPI

What are we doing wrong?
Regards Ed

Hi,
Can we have more info on your problème? (More press return and send header?)
It may cause by a line return at the end like:

Tip: Make sure there is no extra “new line” after pasting a base64 string into Postman. If there is, the API will (rightfully) return a “Not a valid base64 image.” error.

1 Like