Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7792

Support inputstream for session.write

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Not A Problem
    • None
    • None
    • Core Framework
    • None

    Description

      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); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            Moosheimer Kay-Uwe Moosheimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: