Why was the SaveToStream function defined only for the TZAbstractMemTable and not for the TZAbstractRODataset?
I'm developing an HTTP Server and I needed to transport a Stream of the result of a TZQuery or a TZReadOnlyQuery to the client, that's when I realized that the SaveToStream function belonged only to the TZMemTable
Would it be possible to move or create a SaveToStream for TZQuery and TZReadOnlyQuery?
Thanks
SaveToStream in TZAbstractRODataset
-
- Fresh Boarder
- Posts: 3
- Joined: 02.05.2024, 01:29
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: SaveToStream in TZAbstractRODataset
Hello,
If they don't fit into what you are doing, maybe the functions for encoding data into XML can help you.
Best regards,
Jan
This is because it was meant to only save the data of TZMemTable Also the stream format is more or less defined to be internal for Zeos. It can change without notice.fernandobanhos wrote: ↑02.05.2024, 01:41 Why was the SaveToStream function defined only for the TZAbstractMemTable and not for the TZAbstractRODataset?
May I ask what the use case is? What kind of clients do you want to connect to? There is the Zeos Webservice based proxy server and its driver. They use SOAP over HTTP and XML in general to transport the data and build a bridge over the internet for Zeos based applications.fernandobanhos wrote: ↑02.05.2024, 01:41 I'm developing an HTTP Server and I needed to transport a Stream of the result of a TZQuery or a TZReadOnlyQuery to the client, that's when I realized that the SaveToStream function belonged only to the TZMemTable
If they don't fit into what you are doing, maybe the functions for encoding data into XML can help you.
Best regards,
Jan