Osb Email : Persist attached file in email message
Hello,
Context : OSB 11.1 with WLS 10.3.4.
By OSB FLow, I would like to extract mail attachment file and persist it under FTP in distant folder.
My first flow (proxy service to read + business service to save file data) is correct :
1.Connect to imap server is successful.
2. Message is read and could by persist as it successfully : the file is correct and is a good mime multipart file.
Now I would like to persist only the attached file in mail message.
In proxy service, I have added a "replace message processing" to change body with attachment content :
Xpath : .
In Variable : body
Expressionn : $attachments/ctx:attachment[0]/ctx:body/.[0]/ctx:binary-content
But the content is a mime format and no the file attached :
Content :
-----------------------------------------------------------------------------------------------------------
MIME-Version: 1.0
Content-Type: multipart/related; boundary=MIME_Boundary
--MIME_Boundary
Content-Type: application/zip; name="2011-02-02-16-25.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="2011-02-02-16-25.zip"
UEsDBBQACAAIACaDQj4AAAAAAAAAAAAAAAAMAAAAMDAwNDM3OTAuY3RybZlBjiU5CET3I...
-----------------------------------------------------------------------------------------------------------
Do there a way to extract simply a file attached content to a email ?
thanks in advance ?