I am trying to take an input zip stream and grab the files from inside of it. Currently, I have this bean call attempt to send the stream to a dummy method so I can analyze the body in the debugger. The result is an empty string.
public void configure() throws Exception {
from("direct-vm://splitter-route")
.split(new ZipSplitter())
.streaming()
.convertBodyTo(String.class)
.choice()
.when(body().isNotNull())
.bean(this, "testCall")
.to("file:/tmp/myinputzip")
.end()
.end();
How can I get this to pass each individual file to my method?