Call Rest Api and Pass PDF file

I have machine learning model deployed as Rest Api and i want to use service Task to call the Rest Api and pass pdf file as an input to the to Rest Api and get back json text file as an output from Rest api.

How can i pass pdf file using Rest Api.?

Hi and welcome to the Camunda Community!
For such a topic I would recommend to use either a Java delegate or an external task worker in combination with a language of your choice.

When doing so, the process instance can carry the pdf file information. This information can be passed over to the delegate / code snippet which is then responsible for retrieving and sending the file to your machine learning application.

Apparently Camunda doesn’t provide any pdf handling mechanisms ootb.

Does this help?