I am attempting to call the rest-api to attach a text document to a workflow task. Currently, I am allowing the user to select a file to upload at which point I attempt to call the attachments rest-api for that task. My question is how I get the file itself loaded into ACT_GE_BYTEARRAY (I believe that is where the file is stored). Any help would be useful as I'm having difficulties understanding the documentation.