Base64 files

You can upload and download files using base64-encoded format.

Note: Files sent from Nintex Automation Cloud are sent using the header Transfer-Encoding: chunked, with no Content-Length header, in accordance with the HTTP spec.

How to upload and download base64 files

In the parameter or response object that represents the file, add:

  1. A type property of string.
  2. A format property of byte.

Where to use base64 encoding

You can use base64 file encoding:

  • In the parameter object to upload a file to your API.
  • In the response object to download a file from your API.
{
  "name": "body",
  "in": "body",
  "schema": {
    "type": "object",
    "properties": {
      "content": {
        "type": "string",
        "format": "byte"
      }
    }
  }
}