
Questions: 23,767 //
Answers: 52,373 //
Contributing Members: 18,028
<flow name="encodeFlow">
<file:inbound-endpoint path="D:\VpnTest" responseTimeout="10000" doc:name="File"/>
<file:file-to-string-transformer doc:name="File to String"/>
<base64-encoder-transformer></base64-encoder-transformer>
<logger message="#[payload]" level="INFO" doc:name="Logger"/>
<base64-decoder-transformer></base64-decoder-transformer>
<logger message="#[payload.length()]" level="INFO" doc:name="Logger"/>
<byte-array-to-string-transformer doc:name="Byte Array to String"/>
<file:outbound-endpoint path="D:\DocImg" outputPattern="#[message.inboundProperties.originalFileName]" responseTimeout="10000" doc:name="File"/>
</flow>
Does it print logs from the flow? Try escaping the \ i.e. D:\\VpnTest
or D:/VpnTest
. What does log show for file:outbound-endpoint?
Aug 11, 2016 at 06:20 PM, pjmartos answered with:
I think you need to specify a connector, and then link the inbound endpoint to that connector. Please see https://docs.mulesoft.com/mule-user-guide/v/3.8/file-transport-reference.
Also, I'd try to replace the backslashes with forward slashes inside the path attribute of the inbound endpoint, as Manik Magar suggests. In this case it shouldn't matter since the backslash would just disappear and the path would be D:VpnTest, which should be correct, but you never know until you try.
Let me know if that helps.
How to use an XML file as input for a web service consumer 2 Answers
Dynamic outbound filename with 2 dynamic values 0 Answers
File-connector Inbound streaming to Outbound connector, resets and reattempts multiple times 5 Answers
Mule requester collection is getting blank content of more than one page PDF file 0 Answers
Fileconnector moves file to the backup-folder when error occurs 1 Answer