In 3.10.0 (maybe sooner, we're trying to switch from 3.6.0) handling of URIs has changed, and this code no longer works:
because Camel will try to send "/C:/xxx.txt" into Paths.get(...), instead of new FileInputStream(...) as before. Paths.get cannot handle the initial slash.
Switching to the format without the slash - "file:C:/..." would work, but then following code does not:
It fails with URI is not hierarchical message (and we use something like this in multiple places, so this stops us from upgrading to newer versions of camel)