You are not logged in.
Pages: 1
Hi, (Delphi2009 ent)
I noticed that DefineProperties are not stored by default in the streamer?
Was this intended?
We wanted to use in TComponent save/restore.
thank you,
Vojko
Offline
Yes, since it will save the content as plain binary, it is not very JSON friendly.
You would rather use custom JSON serialization, as stated in http://blog.synopse.info/post/2012/04/1 … -any-class
You may write your custom serializer which will call DefineProperties and save the content as a JSON base64 content.
Online
Maybe just a global setting or when HumanReadable=False ?.
Defined IS part of Delphi's component structure.
IMHO it's better to get accurate object snapshot.
Offline
Hi,
is there any way to implement this ?
This would be major enhancement in streaming existing components.
I'll create ticket for it -> http://synopse.info/fossil/tktview/3369 … fb5c6f49a1
thank you, Vojko
Last edited by VojkoCendak (2013-05-31 08:20:24)
Offline
For ORM level, I suspect a BLOB storage could be a good idea, serialized as JSON using Base64 encoding?
What is your exact need?
Streaming components into/from JSON?
Storing TPersistent properties of a TSQLRecord ORM table?
Online
Streaming components into/from JSON? -> Yes
Storing TPersistent properties of a TSQLRecord ORM table? -> Yes
Yes it can be BLOB storage.
thank you, vojko
Last edited by VojkoCendak (2013-05-31 11:13:16)
Offline
we need badly streaming of fullblown variants:
check http://synopse.info/forum/viewtopic.php?pid=7817#p7817
Offline
Pages: 1