AnsweredAssumed Answered

creteAttachment using InputStream

Question asked by jimzhang on Aug 7, 2014
Latest reply on Aug 8, 2014 by jimzhang
I am trying to attach a pdf file to a task as:

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?

Outcomes