Replies: 1 comment 2 replies
-
|
Hi @INNMJO! I'm Dosu and I’m helping the Stirling-PDF team. The Stirling PDF OCR-API endpoint expects the PDF file to be sent as binary data in a multipart/form-data request, not as a base64 string. If you send the file as base64 (even if you use PowerAutomate: Postman: Other requirements: If you still get a 400 error, double-check that the file is being sent as binary and not as base64 text. You can test the API using Swagger UI at Let me know if you need a step-by-step for PowerAutomate or have error details! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i have a Power Automate Flow which calls OCR-API Endpoint by using classic HTTP-Request. After hours of research i am not getting it to work. As you see in the image, this is my API-Call and the body ist defined in a previous "Compose"-Action. You can see the content below. The outputs('Dateiinhalt_abrufen') is a result of SharePoint Action so it is the file as base64. The problem is not limited to PowerAutomate HTTP-Action but also Postman, when i want to Send the file as base64. Any idea how i can solve this so i can call OCR-API via PowerAutomate Flow?
--boundary123
Content-Disposition: form-data; name="fileInput"; filename="Test.pdf"
Content-Type: application/pdf
@{base64ToBinary(outputs('Dateiinhalt_abrufen')?['body/$content'])}
--boundary123
Content-Disposition: form-data; name="languages"
deu
--boundary123
Content-Disposition: form-data; name="ocrType"
skip-text
--boundary123
Content-Disposition: form-data; name="ocrRenderType"
hocr
--boundary123--
Beta Was this translation helpful? Give feedback.
All reactions