Azure Document Intelligence - Can't get High Resolution to Run (SDK Example doesn't work).

Timothy E Hu 20 Reputation points
2025-08-19T19:42:03.96+00:00

.NET(v4.0)/Quickstarts/Samples/Sample_AddOnCapabilities_ExtractHighResolution.cs

// Specify DocumentAnalysisFeature.OcrHighResolution as the analysis features

        var features = new List<DocumentAnalysisFeature> { DocumentAnalysisFeature.OcrHighResolution };

        PromptRequestingDocumentIntelligenceService();

        var operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-read", content, features: features);

        AnalyzeResult result = operation.Value;

        PromptGettingResponseFromDocumentIntelligenceService();
```I tried streaming content of URL but can't get it to work.  

I continually get a 404 error using the CODE from your SDK examples. 

           DocumentIntelligenceClient client = new DocumentIntelligenceClient(new Uri("https://psridocumentintelligence.cognitiveservices.azure.com/"), credential);

            //var client = new DocumentIntelligenceClient(new Uri(this.docIntelligenceEndPoint), new AzureKeyCredential(this.docIntelligenceApiKey));

            var content = new AnalyzeDocumentContent();

           

            if (!string.IsNullOrWhiteSpace(path))

            {

                #region Option 1: Analyze a sample document file from local file system.

                var docFileBytes = File.ReadAllBytes(path);

                content.Base64Source = BinaryData.FromBytes(docFileBytes);

                #endregion

            }

            else if (!string.IsNullOrWhiteSpace(url))

            {

                #region Option 2: Analyze a sample document file from url.

                var uriSource = new Uri(url);

                content.UrlSource = uriSource;

                #endregion

            }

            //  Specify DocumentAnalysisFeature.OcrHighResolution as the analysis features

            var features = new List<DocumentAnalysisFeature> { DocumentAnalysisFeature.OcrHighResolution };

            PromptRequestingDocumentIntelligenceService();

            var operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-read", content, features: features);

            AnalyzeResult result = operation.Value;

![User's image](/api/attachments/891633e5-4a57-4c30-986b-8741a3569e3e?platform=QnA)

Azure AI Document Intelligence
{count} votes

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.