Re: [twsocket] TWsocket/TWsocketServer sending/receiving Files

2005-11-18 Thread Francois Piette
ttin Erkoc" <[EMAIL PROTECTED]> To: Sent: Thursday, November 17, 2005 9:50 PM Subject: [twsocket] TWsocket/TWsocketServer sending/receiving Files > hi, > I have used both compenets to send/receive text but now I'm trying to > use it for sending files.. > so I tried just si

Re: [twsocket] TWsocket/TWsocketServer sending/receiving Files

2005-11-17 Thread Wilfried Mestdagh
Hello Sela, - Are you taken into account that nRead also can be 0 or -1 ? - You create a TStream in every OnDataAvailable. I think you need the TStream to put the file in right ? Then only create it one time. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://

[twsocket] TWsocket/TWsocketServer sending/receiving Files

2005-11-17 Thread Selahattin Erkoc
hi, I have used both compenets to send/receive text but now I'm trying to use it for sending files.. so I tried just simple to open the file binary, read it and send it to the Server TCommand = record ID : Integer; end; TFileBuf = record ID : Integer; bufSize : Integer; buf: a