A stupid question about POST: https://cloud-westus.ocrsdk.com/v2/processImage

  • 188 Views
  • Last Post 19 November 2019
Павло Ус posted this 18 November 2019

Hello

May I ask you a stupid question about POST: https://cloud-westus.ocrsdk.com/v2/

Working under REST API integration

How to point a file in the request?

 

E.g. my test request for a .png file (which doesn't work):

 

{

"language": "English",

"profile": "textExtraction",

"imageSource": "auto",

"exportFormat": "txt",

"file": "iVBORw0KGgoAAAANSU.....QAAAABJRU5ErkJggg=="

}

Order By: Standard | Newest | Votes
Павло Ус posted this 18 November 2019

As I see:

Please make sure that you transmit to the service the binary data as is. The fact is that Cloud OCR SDK cannot work with the data encoded in base64.

 

But how to send images then? Nothing in the documentation.

Павло Ус posted this 19 November 2019

Hello,

That part is clear now but I have another annoying situation: everything works for .pdf but not for .jpg, .bmp, etc.

How to fix this?

Павло Ус posted this 19 November 2019

Extremely simple flow:

 

Extremely simple flow

Close