
Questions: 23,688 //
Answers: 52,226 //
Contributing Members: 17,955
I am use org.mule.transport.file.ReceiverFileInputStream to transfer file, and i want get currentFile in ReceiverFileInputStream for handle another. But when i use payload.currentFile then it show error not access. help me, please
Oct 20, 2017 at 08:11 PM, javiercas answered with:
Hi @Truong Nguyen,
Are you using a file connector? By default file connector returns a ReceiverFileInputStream, in case you don't need to use streaming and
you need to get hold of the File Object you can define a configuration like the following:
<file:connector name="File" autoDelete="true" streaming="false" validateConnections="true" doc:name="File">
<service-overrides messageFactory="org.mule.transport.file.FileMuleMessageFactory" />
</file:connector>
Keep in mind that you have to set streaming parameter to false.
If this doesn't help you, please share your config xml.