Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13774

camel-zipfile - Accept an iterator as body for zip

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.24.1, 3.0.0.M4
    • Fix Version/s: 3.0.0.RC1, 3.0.0
    • Component/s: camel-zipfile
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Accept iterator or Java 8 Stream as body to produce a zip file this will avoid to use the memory for big file (for some use case we can't get an inputStream)

      For example it would be very nice to be able to do this:

      from("timer:foo?repeatCount=1")
                      .setBody(constant(Stream.of("v1", "v2")))
                      .setHeader(Exchange.FILE_NAME, constant("report.txt"))
                      .marshal().zipFile()
                      .to("file:output/directory");
      

      (https://stackoverflow.com/questions/50295432/zip-and-unzip-a-large-file-without-loading-the-entire-file-in-memory-in-apache-c)

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              michael992 michael elbaz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: