var file = "path_to_local_file";
var content = new AnalyzeDocumentContent();
var docFileBytes = File.ReadAllBytes(file);
content.Base64Source = BinaryData.FromBytes(docFileBytes);
var operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-invoice", content);
In a C# Azure.AI.DocumentIntelligence application, how do I AnalyzeDocumentAsync() on a local file?
David Liptak
20
Reputation points
In a C# Azure.AI.DocumentIntelligence application, how do I AnalyzeDocumentAsync() on a local file?
Accepted answer
-
Brandon G 85 Reputation points
2024-11-19T21:37:38.1733333+00:00
1 additional answer
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more