Skip to content

Commit

Permalink
Fix Form Recognizer Sample issue (Azure#21987)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuHang2021 authored Jun 16, 2021
1 parent 77f6412 commit 79a063d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public void beginRecognizeContentWithOptions() throws IOException {
// if training polling operation completed, retrieve the final result.
formRecognizerAsyncClient.beginRecognizeContent(buffer, form.length(),
new RecognizeContentOptions()
.setContentType(FormContentType.APPLICATION_PDF)
.setContentType(FormContentType.IMAGE_JPEG)
.setPollInterval(Duration.ofSeconds(5)))
.flatMap(AsyncPollResponse::getFinalResult)
.flatMap(Flux::fromIterable)
Expand Down

0 comments on commit 79a063d

Please sign in to comment.