Sergey,
I would like to store a TParaInfo instance in a BLOB field and retrieve it. How would I go about doing this?
Saving styles to a data table
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
TParaInfo is inherited from TCollectionItem.
You can save the whole collection to stream:
So you can create a collection, copy TParaInfo to it (using Assign method), then save it to blob stream.
You can save the whole collection to stream:
Code: Select all
var Writer: TWriter;
Writer := TWriter.Create(Stream, 4096);
Writer.WriteCollection(ParaStyles);
Writer.Free;