Altova FlowForce Server 2025 Advanced Edition

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.

 

Signature

mime-multipart(subtype:string, s:stream) -> stream

 

Parameters

Name

Type

Description

subtype

string

Specifies the multipart/subtype to use.

s

stream

Specifies the input stream.

 

Examples

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"))

ff_mime-multipart

© 2018-2024 Altova GmbH