Internet Direct (Indy) Version 9.0.2 Beta
TIdDecoderQuotedPrintable.DecodeToStream
Decodes a Quoted-Printable-encoded string and stores the result in a Stream.

procedure DecodeToStream(AIn: string; ADest: TStream); override;
Parameters
AIn: string
Value to be decoded.

ADest: TStream
Destination for the decoded value.

Description
DecodeToStream is an overridden procedure in TIdDecoderQuotedPrintable that implements the decoding algorithm for the Quoted-Printable encoding scheme. DecodeToStream converts the Quoted-Printable value in AIn to it's original un-encoded form, and stores the result in the Stream ADest.

AIn contains a value in the format generated by TIdEncoderQuotedPrintable.Encode. DecodeToStream will remove any trailing whitespace in AIn before performing the decoding algorithm, in accordance with RFC 2045. If AIn is an empty string (''), DecodeToStream performs no processing and exits from the method.

ADest is a TStream descendant that will receive the un-encoded value of AIn.