Convert bytes to file

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.

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