How to call OCR free api from java code

I am trying to call , this api "
curl --location ‘

from my java code
but always getting error image is corrupted , even working fine directly from postman
can you share any maveen java project where you called ocr free api


You can use the PostMan code export feature or start with this OCR API Java sample code.