web stats
Mirth Community - View Single Post - Mirth Email Reader
View Single Post
Old 12-26-2014, 06:09 AM
phoff phoff is offline
Mirth Newb
Join Date: Aug 2014
Posts: 6
phoff is on a distinguished road

sorry about that. I should have posted this a while back. I was building a channel that would extract a PDF attachment and write that PDF file to a pre-defined directory.

Source Tab - I used a POP3 Email Reader. I set the "Message Content" to All.
Click "Edit Transformer" - to create some templates

I created a new Mapper variable.
Variable: 'pdfData'
Mapping: msg['Attchment'].toString()

Destination Tab
Added 1 new destination called, "StoreInFolder". The connector type should be File Writer.

In the File Writer Settings section, I set the Template to the mapper variable I had created in the Source Tab. I set the value to $(pdfData).

Hopes that helps a little. I should had posted the solution when it was fresh in my mind.
Reply With Quote