Writes the entire contents of the memory stream to the stream object specified by Stream.
procedure SaveToStream(Stream: TStream);
Use SaveToStream to copy with decompression data that is stored in memory into another storage medium. SaveToStream writes the entire contents of the memory stream into the indicated stream object, starting at the current position in the stream that was passed as a parameter.
If the entire contents of the memory stream cannot be written to the target stream, SaveToStream raises an exception.