Convert FileValue to MultiPartFile

How do i convert file saved as process variable into MultiPartFile which is being uploaded to a different source

HI @satyaram413,

I understood the following:

  1. You have a process running in Camunda 7
  2. One process variable holds a file
  3. Via a service task, you want to upload this file to another service.
  4. The upload requires a MultiPartFile

Is that correct?

In this case, the upload does not depend on Camunda. You can use an HTTP client within your service task implementation to upload your file. For Spring Boot’s RestTemplate see the following example: