Altova FlowForce Server 2024 Advanced Edition

Applies encoding as Content-Transfer-Encoding to stream s.

 

The supported encodings are:

 

Empty string: Equivalent to "binary".

"base64": Base64 encoding

"quoted-printable": Quoted printable encoding

Any other string: No encoding

 

The function decodes the stream using the current Content-Transfer-Encoding and re-encodes it using the specified encoding. The new Content-Transfer-Encoding is stored in the headers of the resulting stream.

 

The function does not guarantee that errors in the source encoding are reported.

 

Signature

mime-content-encode(s:stream, encoding:string="") -> stream

 

Parameters

Name

Type

Description

s

stream

Specifies the input stream.

encoding

string

Specifies the encoding to apply. By default, this is an empty string.

© 2017-2023 Altova GmbH