Skip to main content
The following C# examples show how to use POST requests to work with files on the server.

Load files from the server

To load a file from the server, create a server request to AppServerURL + "/FlexiCapture12/Server/FileService/v1". Use the POST method and the application/x-www-form-urlencoded content type. Record the results to a new file. Request body and C# method:

Upload files to the server

First, open an existing file and read data from it. Obtain the content string from the binary file using Encoding.Default. To save the file, create a server request to AppServerURL + "/FlexiCapture12/Server/FileService/v1". Use the POST method and the multipart/form-data content type. Request body and C# method:

Get a checksum

To get a checksum, create a server request to AppServerURL + "/FlexiCapture12/Server/FileService/v1". Use the POST method and the application/x-www-form-urlencoded content type. Request body and C# method:

Load by parts (modify an existing file)

You can modify only a file that already exists on the server, so create the file with the POSTSaveFile method first. To modify the file, create a server request to AppServerURL + "/FlexiCapture12/Server/FileService/v1". Use the POST method and the multipart/form-data content type. Request body and C# method: