I am trying to write to the flowfile in Nifi using groovy with the outputStream ( which is a bytearrayoutputstream). However, the size that i write to the flowfile is zero. Am i doing it wrong ? thanks in advance.
code: FlowFile newFlowFile = sess.create();
newFlowFile = sess.write(newFlowFile, { out ->
outputStream
} as OutputStreamCallback)