Sending file as payload

I want to send/upload a file through my service task.
I know i can use Freemarker to send custom json payloads, but how can i send a full file?.

Hi @Urvashi_Prasad,

do you want to use the Camunda HTTP connector to send the file?

Best regards,
Philipp

Yes. I couldn’t find a way to do it using HTTP connector. So now i am doing it by writing custom HTTP connector class and Delegates.
If there’s a way to do it using Camunda’s HTTP connector I would like to know. Thanks in advance.

Currently, it seems not possible to send a file by the Camunda HTTP connector (as multipart binary). You can only send plain payload (e.g. JSON). Depending on your use case, it’s an option to wrap the file into a JSON document.

Best regards,
Philipp

1 Like

See also How to upload documents via the camunda connector?

1 Like