Azure Form Recognizer - API Rest document base64Source problem

Victor 1 Reputation point
2022-11-02T16:17:21.91+00:00

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?

256398-image.png

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,100 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2022-11-03T10:14:53.963+00:00

    @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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.