Azure Form Recognizer - API Rest document base64Source problem

Victor 1 Reputation point

Hi, I am trying to pass a file with base64, but it gives me the following error:

Content is not supported: Bad or unrecognizable request binary file or Json.

I tested and the value of "base64Source" variable is the "$content" property of file content. so I think is valid.

Im trying with Power Automate.

can someone help me?


Azure Form Recognizer
Azure Form Recognizer
An Azure service that applies machine learning to extract text, key/value pairs, tables, and structures from documents.
768 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 32,691 Reputation points Microsoft Employee

    @Victor I think you should use the content-type header with value application/json instead of application/pdf
    It is possible to use base64Source with the latest version of FR rest API. I would recommend to use the REST API directly and test the scenario with base64Source before moving to use with power automate. Please see the following thread that I worked on previously to use base64Source to get the response from the service for reference.

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.