You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Kay-Uwe Moosheimer (Jira)" <ji...@apache.org> on 2020/09/09 10:56:00 UTC
[jira] [Resolved] (NIFI-7792) Support inputstream for session.write
[ https://issues.apache.org/jira/browse/NIFI-7792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kay-Uwe Moosheimer resolved NIFI-7792.
--------------------------------------
Resolution: Not A Problem
> 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)