Encode is a procedure used to create and store the encoded values for a message part in the TStream identified by ADest. Encode uses the
TIdMessageEncoderInfo for the owner Collection to create an encoder instance for the message part, which reads the message part from the stored file and captures the values in the specified stream.