TAdvMemo Streaming

Good morning. 


I am using the TAdvMemo to store some information about a file, and saving the result to a database as a blob.  I first copy the memo into a stream using the function

  ms := TMemoryStream.Create;
  ms.Position := 0;
  amMergeList.SaveToRTFStream(ms,false);
  ms.Position := 0;
  TBlobField(ADOQry.FieldByName('DocMrgFlds')).LoadFromStream(ms);
  ms.Free;

Seems to be working, but I do not find a complimentary function of LoadFromRTFStream.  While I can get it back from the database into a memory stream, how do I reload the table with the data?

Thanks.

OK, my bad.


I changed the save to

amMergeList.Lines.SaveToStream(ms);

and the restore is now:

amMergeList.Lines.LoadFromStream(ms);

Sometimes I have to regroup and think about what part of the object I am actually manipulating.