[ 
https://issues.apache.org/jira/browse/NIFI-7792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17192785#comment-17192785
 ] 

Kay-Uwe Moosheimer commented on NIFI-7792:
------------------------------------------

Hi, Mark,
I did not realize that. Works perfectly.
Thank you very much for the quick answer!
Sorry for the wasted time.

> Support inputstream for session.write
> -------------------------------------
>
>                 Key: NIFI-7792
>                 URL: https://issues.apache.org/jira/browse/NIFI-7792
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: Kay-Uwe Moosheimer
>            Priority: Trivial
>
> When writing flowfile content with 
>  flowFile = *session.write*(flowFile, out -> \{...}
>  only a byte array can be used.
>  It would be an improvement if you could provide an InputStream too.
> So one would not have to do the copying oneself and insert possible errors.
> while ((length = in.read(buffer, 0, buffer.length)) != -1)
> { out.write(buffer, 0, length); }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to