cunningt commented on PR #19892:
URL: https://github.com/apache/camel/pull/19892#issuecomment-3534357705
> 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.
Sorry about that - removed the camel-file dependency and used WrappedFile.
--
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]