Skip to main content

What it does

Adds a new document from an image file into a batch. This method replaces the AddNewDocument method from the previous version of the Web Services API. The added documents become accessible only after their images are pre-processed. Use the ProcessBatch method to start image pre-processing after you add the documents.

Definition

Parameters

Add a document image with a POST request

You can also use a POST request to add a document image. Create a document with an empty file using this method (file.Name = "FileName", file.Bytes = new bytes [0]). Then execute a POST request with the following parameters:
  • Action = Save
  • objectType = 0
  • objectId = documentId, where documentId is the document ID returned by the AddNewDocumentEx method
  • version = 0
  • streamName = "FileName", where FileName is the name of the file specified when calling the AddNewDocumentEx method

Returned value