Base64 encoded string with Form recognizer

Adam Schlichtmann 1 Reputation point
2022-09-01T21:29:41.293+00:00

I am trying to use the Form Recognizer rest api. In the docs there is the following:

237092-screen-shot-2022-09-01-at-42133-pm.png

Screenshot taken from: https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-2022-08-31/operations/AnalyzeDocument

What is the base64Source property for?

To me it seems that I should be able to post a json request body such as: { base64Source: '...' } with the Content-Type header set to application/json.

This does not work and I cannot find a mention of this base64Source property anywhere else.

Does this property do anything?
Is there a way I can post a base64 string?

Thanks in advance!

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

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,961 Reputation points Microsoft Employee
    2022-09-02T10:03:19.177+00:00

    @Adam Schlichtmann Yes, you can post the base64Source content in the request body and get a 202 accepted response. For example,

    Here is my request:

    237274-image.png

    Corresponding response:

    237248-image.png

    The results of the GET operation result:

    237293-image.png

    This is inline with the examples provided on the form recognizer REST API spec repo available here.

    What is the error seen in your case that fails the request?

    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.

    1 person found this answer helpful.