Instead of converting the “documents[1]” to base64 - documents is a variable coming out of a file picker in Camunda 8 Form - Camunda connector is sending just the JSON pointing to the file.
Camunda 8 Rest Connector documentation does not seem to be right.
@mbarni , The Camunda 8 REST Connector does not automatically convert documents[1] (from File Picker or Webhook) to a base64-encoded string in the request body—even though the documentation implies it might.
Instead, documents[1] is just a reference object, containing the document ID and metadata, not the file content.
Why This Happens
When you use a File Picker in Camunda 8 or upload a file via Webhook: