Convert bytes to file


#1

Hi,

When attaching file in my custom web application, I am using the Camunda rest api to assign the attached file to the task.

Using the rest api “Get Task Attachment Content (binary)”, I am getting the byte stream.

How do I render it back to a file?

Thanks.


#2

You can convert byte stream to FileOutputStream, which will return you the File.