How to use processFields method with python

  • 24 Views
  • Last Post 4 weeks ago
  • Topic Is Solved
tarun73 posted this 5 weeks ago

As processFields method needs a post request, how do i send the body parameters:

1.XML file

2.TaskId

i am trying to send it in this fashion

bodyparams:{"taskId": XXXXXXXXXXXXXXXXXX,

                       "file": open(xmlFile,"rb")

                     }

and then encoding the bodyparams, and making a post request

But i am getting an internal server error response status code 500.

 

IvanPopov posted this 4 weeks ago

An example of transmitting a file in the request body can be found in the code sample for Python, see file AbbyyOnlineSdk.py, method ProcessImage.

If the code sample is not helpful in resolving the issue, please send your input files (the recognized image and the XML file with field coordinates) to SDK_Support@abbyy.com so we could reproduce it on our side.

Close