I can send a file from my java code over a direct endpoint to system out