Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread send text stream from server to client
Fri, Jan 9 2009 6:19 PMPermanent Link

=?iso-8859-1?Q?Luis_Concepci=F3n?=
Hi!

I have a Client/Server application which connects to the server using remote
host connection (Internet IP).

The server machine stores some application config files in .INI files.

I need the Client app to 'copy' those config files instead of ask the user
to config the client machine again, so...
Is it possible to send text from server to clients? Maybe a method,
function, etc... to stream text from server to clients when needed?

I have been thinking of saving those files into a database blob record so it
would be available for each client machine.
Is there a faster or easier method to do this? Any example of streaming data
and ask for it from clients?

Thanks!
Mon, Jan 12 2009 10:59 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Luis,

<< Is it possible to send text from server to clients? Maybe a method,
function, etc... to stream text from server to clients when needed? >>

Yes, you can do so with a server-side procedure:

http://www.elevatesoft.com/manual?action=mantopic&id=dbisam4&product=d&version=7&category=1&topic=8

Under "Server Procedures" you will see an example of a server-side procedure
that sends the contents of a file back to the client.

See here for how to call a server-side procedure:

http://www.elevatesoft.com/manual?action=mantopic&id=dbisam4&product=d&version=7&category=1&topic=10

<< Is there a faster or easier method to do this? Any example of streaming
data and ask for it from clients? >>

Well, for BLOB fields, you can simply use the TBlobField AsString property
or the SaveToFile/LoadFromFile methods to do so.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image