I am trying to fetch content of attached files using api call on activiti version 5.22.0. For "text" files, I am able to save content in a local file but for rest of the formats (.pdf/ .jpeg), I am not getting proper content as the local files are getting corrupted and also size of local file is larger than the original file.
Can you elaborate though? I want to know things like, "when I use this file (size, type, etc), the API call works, but then I download the file and <something> happens". Are there any error messages? Does this seem to happen to all files other than text no matter what? Or does it work for smaller/larger files?
As you said that this problem will not occur in Activiti Version 6, but is there any possibility that I can get correct content using Activiti Version 5.22 as migrating from version 5.22 to 6 will require major changes for us.