Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created September 6, 2020 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/ea543401e7a1b050faf33b61e08591a8 to your computer and use it in GitHub Desktop.
Save xximjasonxx/ea543401e7a1b050faf33b61e08591a8 to your computer and use it in GitHub Desktop.
var computerVisionResults = await ProcessWithComputerVision(fileBlob, fileId);
// save the batch data
var batchOperation = new TableBatchOperation();
computerVisionResults.ForEach(result => batchOperation.Insert(result));
batchOperation.Insert(new OcrResult(fileId) { KeyName = FileLengthKeyName, OcrValue = fileBlob.Length.ToString(), OcrType = OcrType.None });
var executeReslt = await ocrDataTable.ExecuteBatchAsync(batchOperation);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment