コミュニティ

How to use processFields method with python 回答済み

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.

 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    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.

    0
  • Avatar
    Permanently deleted user

    Hello Ivan, is there any code sample for php for the process fields method? 

    0
  • Avatar
    Permanently deleted user

    Hello,

    We have already answered here. Currently there is no such sample for PHP, but we will discuss with our product analyst the possibility to add this.

    0

サインインしてコメントを残してください。