-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.24.1, 3.0.0.M4
-
Component/s: camel-zipfile
-
Labels:None
-
Estimated Complexity:Unknown
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");