Community

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

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=="

}

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Павло Ус

    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.

    0
  • Avatar
    Павло Ус

    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?

    0
  • Avatar
    Павло Ус

    Extremely simple flow:

     

    Extremely simple flow

    0

Please sign in to leave a comment.