Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread "memory" table as generic dataset streaming
Fri, Sep 8 2006 2:36 PMPermanent Link

"Jerry Hayes"
I have a project that has local DBISAM tables but is also connected to a
server via a socket layer.  It's NOT using client/server DBISAM, it's making
RPC calls to the server; custom socket layer.

My question...

How suitable is a "memory" DBISAM table, with SaveToStream at the server and
LoadFromStream at the Client, as a generic method for passing dataset
information between over the socket layer?

Thanks,

Jerry

Fri, Sep 8 2006 3:28 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jerry,

<< I have a project that has local DBISAM tables but is also connected to a
server via a socket layer.  It's NOT using client/server DBISAM, it's making
RPC calls to the server; custom socket layer.

My question...

How suitable is a "memory" DBISAM table, with SaveToStream at the server
and LoadFromStream at the Client, as a generic method for passing dataset
information between over the socket layer? >>

It's perfectly suitable for such a task, and it's what is used with DBISAM
C/S for streaming datasets back and forth.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Sep 8 2006 5:34 PMPermanent Link

"Jerry Hayes"
Tim,

Sounds Great!

I've done some trials, works fine, but I can't figure out how to enable the
field compression for when I SaveToStream.

I've tried setting the FieldDef.Compression level before assigning data,
(get an error), and after assigning data, but before saving to stream and no
effect.

The memory table "stand-alone" and is not part of any database/session/etc.

Shouldn't I be able to at least get extra space character data (ftString
type) to filter out on the SaveToStream?

Obviously, I'm missing something, but can't find it.

Thanks,

Jerry

Fri, Sep 8 2006 5:41 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jerry,

<< Sounds Great!

I've done some trials, works fine, but I can't figure out how to enable the
field compression for when I SaveToStream. >>

You can't - the stream format is fixed.  If you want to compress the stream
in its entirety, however, you can do so using external methods like the ZLib
compression library in Delphi.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image