TDaBin(2)DataStreamer

hi,
is there a way to both use TDaBinDataStreamer and TDaBin(2)DataStreamer at the same time
so you can use one or the other depending on the connected client?
(in Delphi)
tia,
marc

Hello

It is possible, yet it would require some efforts.

This is approach similar to the one used in Relativity:

  1. When a client app logs in it sends an additional parameter describing which exactly type of streamer it prefers. This is the place where LoginEx string is a very useful feature, because one doesn’t need to create additional Lohin methods to be able to send additional parameters while login.

  2. The value of this login parameter is stored in the session.

  3. When the DataService instance is activated, in its AfterActivated event a proper Streamer instance should be created, based on the value stored in the session.

You’ll just need to decide which streamer kind to use by default when the session value is not set for some reason.

Hope that helps

thx i can go from here :slight_smile: