Internet Direct (Indy) Version 9.0.2 Beta
TIdAttachment.Encode
procedure Encode(ADest: TStream);
Parameters
ADest: TStream
Stream to receive the encoded value for the message part.

Description
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.