Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Osb Email : Persist attached file in email message

user6460076Mar 16 2011 — edited Mar 22 2011
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 ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2011
Added on Mar 16 2011
3 comments
558 views