How to use processFields method with python

  • Last Post 29 August 2017
  • Topic Is Solved
tarun73 posted this 22 August 2017

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

1.XML file


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 29 August 2017

An example of transmitting a file in the request body can be found in the code sample for Python, see file, 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 so we could reproduce it on our side.