davsclaus commented on PR #19892:
URL: https://github.com/apache/camel/pull/19892#issuecomment-3520213370

   You dont need to add camel-file as dependency, but you can check for wrapped 
file ala
   ```
           if (obj instanceof WrappedFile<?> wf) {
               obj = wf.getFile();
           }
           if (obj instanceof File f) {
               filePayload = f;
               inputStream = new FileInputStream(f);
               contentLength = f.length();
   ```
   
   You can see how this is done elsewhere such as above from aws, or do a git 
grep WrappedFile to find code samples.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to