Takes any number of streams and combines them into a multipart/subtype.
The boundary is invented automatically. The streams will be flattened before assembly. Multiparts with additional parameters are not yet supported.
Note for FlowForce Server Advanced Edition users: The subtype should always be related for AS2, as AS2 does not define a meaning for other multipart messages. See also the mime-multipart-related function.
mime-multipart(subtype:string, s:stream) -> stream
Specifies the multipart/subtype to use.
Specifies the input stream.
The following expression returns a stream that includes two files, an EDI file and a PDF.
mime-multipart("related", stream-open("c:\example\order.edi", "application/EDIFACT"), stream-open("c:\example\measuredetails.pdf", "application/pdf"))