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 AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,527 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 43,686 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.