Attachment.commit(contents,remarks)

Commits an attachment. The attachment must have been previously edited by the participant. If successful, this will always generate a new attachment version. The attachment will be unlocked. For example: binaryB = BinaryFile.readToBinaryFrom(name : "C:/tmp/attachexample.txt") commit attachment using contents = content, remarks = "Second version of the document."

Arguments:

Name Type Description Mode
contents Binary attachment data. in
remarks String attachment comment. in