0 Replies Latest reply: Feb 28, 2006 1:41 AM by Jay Casteel RSS

XML file with an attached MIME encoded ZIP file

Jay Casteel
Currently Being Moderated

Hi all,


I'm new to SAP WAS and MIME encoding/decoding, and I'm trying to generate an XML file with an attachment which is also MIME encoded.


1) I have dummy files (1.jpg, 2.jpg) and I'm trying to zip these files into one zip file (files.zip).

2) I'm trying to MIME encode/decode this zip file.

3) I'm trying to attach this MIME encoded zip file to existing XML file.


Which FMs could I use to accomplish this?  Your help is very appreciated.

Thank you.


below is a file example that I'm trying to generate.


MIME-Version: 1.0

Content-Type: multipart/mixed;

     boundary="--XXXXboundary text"

Content-Transfer-Encoding: 7bit


This is a multi-part message in MIME format.


--XXXXboundary text

Content-Type: text/xml;


Content-Transfer-Encoding: 8bit

<?xml version="1.0" encoding="utf-8"?>




--XXXXboundary text

Content-Type: application/octet-stream;       name="files.zip"

Content-Transfer-Encoding: base64

Content-Disposition: attachment