What the example does
The example code performs the following steps:- Connects to the service
- Opens a session
- Opens the project
- Creates a new batch
- Adds images to the batch
- Starts processing the batch
- Gets the results and displays the captured data
- Closes the session
Set up the example
1
Upload the project file to the server
Upload the
UnattendedExample.fcproj project file to the server.2
Open the solution in Visual Studio
Open
UnattendedExample.sln in Visual Studio 2013 or later.Connect to the service
Open a session
Open the project
Create a new batch
Add images to the batch
Upload files smaller than 256 KB
Upload larger files
Uploading files larger than 256 KB in their entirety in Base64 has the following drawbacks:- Network load increases by 33%.
- Very large requests may be blocked by IIS or by the firewall.
- If the connection is lost or there are network errors, you must resend the file.
Upload a file to the server
TheUploadFile method reads the file and sends it to the file service in 1 MB portions, then verifies the upload with a checksum:
Send a file request with file content
TheFileRequest method has two overloads that send an action to the file service. The first sends the file content as multipart form data:
Send a file request without file content
The second overload sends a request without file content, using form URL encoding:Start and end batch processing
Get the results and display the captured data
From each document, only three fields are displayed:- Addressing
- First Name
- Last Name
