Title: Serial/Deserialize objects Post by: kaju74 on September 29, 2010, 05:03:34 PM Hi..
Is there any simple (maybe embedded) way to serialize/deserialize an object? I want to return an object from a server to a calling client. My solution would be to use the Delphi functions "ObjectTextToBinary" and "ObjectBinaryToText" and asBinaryStream...but is there any smarter solution for sending Delphi objects between client/server? If using "asBinaryStream", do you've any example how to use this on client/server-sides? My implementation ends up with a lot of AV's ??? ??? Best regards, Marc Title: Re: Serial/Deserialize objects Post by: D.Tkalcec (RTC) on September 29, 2010, 05:13:57 PM In my opinion, it is a bad idea to serialize objects by using general-purpose stream serialization functions. If you ask me, you should use RTC data types when sending data and write your own functions for moving data between your object types and TRtcValue objects.
See this topic for examples on using RTC data types (https://rtcforum.teppi.net/index.php?topic=311.0). Best Regards, Danijel Tkalcec |