Hi,
I am trying on Camunda 7.17 to map a file variable in the outputs section of a task.

The result is the new mapped variable has the type “Byte” and not the type “File”.
Is there a way to change this ?
Thanks
Hi,
I am trying on Camunda 7.17 to map a file variable in the outputs section of a task.

The result is the new mapped variable has the type “Byte” and not the type “File”.
Is there a way to change this ?
Thanks
Internally, Camunda stores files as Byte-Arrays.
Java uses files to interact with the file system. When you upload a file to Camunda, the file is persisted in a database and not the file system.
Can you provide additional information on your use case? Why is it important that the type remains “File”?
Hi,
I have a unique form used by two tasks “TASK_1” and “TASK_2”.
In this form I have a file input with a local variable “FILE”.
I want that at the end of each task the local File variable be renamed as TASK_1_FILE and TASK_2_FILE in the execution.
That is why I have used the variable mapping.
But the mapped variable is stored as Byte and not as File and if I try to use it in another form with a cam-file-download link, it shows nothing.
I hope I am understandable ^^
Finally, I have managed to handle it with a Java Class as a Task Listener.
The Java Class gets the local task variable as a FileValue and put it with a different name to the execution.
But it would be simpler if the Output Mapping can handle this operation.