Name
dime_compose, dime_tree — compose and parse DIME (Direct Internet Message Encapsulation) messages
Synopsis
any dime_compose(
|
in parts any); |
any dime_tree(
|
in message_body varchar); |
Description
DIME (Direct Internet Message Encapsulation) is a lightweight binary multi-part message format historically used to carry SOAP attachments.
dime_compose takes a vector
parts describing each record (content type,
optional URI identifier, payload bytes) and returns the assembled binary
DIME message ready to send over HTTP. Passing an SQL NULL
parts raises SQL state 22023
(SR014).
dime_tree parses a binary DIME
message_body into a vector of parts. Each element
is a record describing one DIME chunk: its type, URI identifier and the
payload bytes. The function is the inverse of
dime_compose.