[ 
https://issues.apache.org/jira/browse/CAMEL-21352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17909616#comment-17909616
 ] 

Claus Ibsen commented on CAMEL-21352:
-------------------------------------

We should have a streamDownload or some similar name so we can support reading 
the file using InputStream directly ( and have some logic that auto-close 
stream on UoW done on the exchange)

As today the SmbFile reads the entire content into memory as byte[] and that 
does not work great for big files.

 
@Override
public Object getBody() {
// use operations so smb file can be closed
return operations.getBody(this.getAbsoluteFilePath());
}

> camel-smb - Based on camel-file to have many more features
> ----------------------------------------------------------
>
>                 Key: CAMEL-21352
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21352
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-smb
>            Reporter: Claus Ibsen
>            Assignee: Jono Morris
>            Priority: Major
>             Fix For: 4.10.0
>
>
> Maybe we could let camel-smb extend camel-file (like camel-ftp / camel-jsch) 
> and then have a lot more file related features out of the box.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to