taskService.createAttachment(attachmentType, taskId, processInstanceId, attachmentName, attachmentDescription, content); here the content is a InputStream.
After this method call, from ACT_HI_ATTACHMENT table there was a new row created, and also a new row created in ACT_HI_COMMENT table with a null BLOB.
Wondering why the content didn't store in the database?