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:
- You have a process running in Camunda 7
- One process variable holds a file
- Via a service task, you want to upload this file to another service.
- 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: https://www.baeldung.com/spring-rest-template-multipart-upload