Get a process instance variable with type file in my api

hi guys
i need to get a variable with type file in my code but in the response the value is null
request:
engine-rest/process-instance/55ef6fcb-cf45-11eb-be37-0242ac110004/variables/driverImage
response:
{"type":"File","value":null,"valueInfo":{"filename":"00d76w-554723684.jpg","mimeType":"image/jpeg"}}
in camunda this variable has image and i can download it
even if i use Fetch and Lock External Tasks | docs.camunda.org approach, in the response the variable is null but others have value
what is the problem?!

Hello @Bagher_Naem ,

what you are looking for is this endpoint:

https://docs.camunda.org/manual/latest/reference/rest/process-instance/variables/get-variable-binary/

Also, when using fetchAndLock on an external task, you will have to use this endpoint go get your binary.

Hope this helps

Jonathan

1 Like

Hello @jonathan.lukas
thank you very much
This answer worked well for me