cancel
Showing results for 
Search instead for 
Did you mean: 

creteAttachment using InputStream

jimzhang
Champ in-the-making
Champ in-the-making
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?
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

There should be CONTENT_ID_ (for ACT_HI_ATTACHMENT row), which points to ACT_GE_BYTEARRAY table. Content is stored there.

Regards
Martin

Many thanks!