Hi David,

are you using server type as non-blocking or thread blocking?  If it's a non
blocking execution, then the incomming buffer is handled by Winsock further
on down in the API until you retrieve it out of the buffer.  I can't
remember exactly the size of that buffer but that number doesn't seem to far
wrong so anything after that would be dropped after the buffer filled up.
How are you breaking it up?  You will probably need to have an send / ack
procedure and stitch together the packets.

-----Original Message-----
From: David O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 16, 2000 5:18 PM
To: Multiple recipients of list delphi
Subject: [DUG]: TServerSocket


I have a little app which is supposed to feed an image to a browser.
The image is on disk, the browser connects through a TServerSocket.

<img src="http://150.1.1.43:16384">

MyStream := TFileStream.Create(FileName, 0) ;
Socket.SendStream(MyStream) ;

This all works fine until the image gets to a certain size.
The Image on disk is fine, the streamed image gets truncated after about
10240 bytes.

I have tried to break the stream up and send it in small chunks, but then
the browser seems to get nothing.

Any ideas how I am supposed to be doing this?

Dave.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to