In my Camel router:
from(<SourceURI>)
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
// I want to extract the file object from the exchange
}
.to(<targetURI>).
How can I achieve this?
I tried e.g. exchange.getIn().getHeader(Exchange.FILE_NAME, String.class)
which gives me the file name.
I am searching for something Exchange.FILE
which gives me the actual file object. My Ultimate goal is to extract the file in the processor as the routed exchange is an archive file.