Cannot get variable value when is of type "File"


#1

Hi,

I’m trying to start a process with some variables, being one of them a “file”.
All of the variables are being saved (I checked database).

Problem
When trying to get the variables, all values are being returned except the value of the “File” variable…
Shouldn’t this return the base64 as I initially submitted?

Note
Everything is done via RestAPI

Thanks,
Pedro Silva


#2

you need to use the get binrary to get the file contents

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


#3

Thanks for the response!

But there’s no way to get the base64?

I wanted to get all the variables at the same time… That way there’s no need for another request.

Anyway. I can just put a link for user download or preview the image.


#4

Nevermind. It actually makes more sense to show the preview only if needed…

Thanks again!