Hmm the links are gone, you have to change them from "" tot "".

This component (on the same page) does what you want. First four bytes are the length (it can be in big endian of little endian - most common used is big endian) then the component concatenates until data is complete. In the comment are a few examples on how to use it.

You have to change some things here and there because it is Delphi7 coded (strings, PChar ... are 8 bit per character).

Met vriendelijke groeten,
Wilfried Mestdagh

Op 26-03-16 om 10:34 schreef Kostas Rizoudis:
Hi Wilfried,

very interesting, i can not retrieve the File over Http://
HTTP Error 403. Can you send me this example?

Regards, Kostas

Am 26.03.2016 um 10:12 schrieb Wilfried Mestdagh:

Then you receive until you have at least 4 bytes. Then you have the length. Then concatenate all received packages until you have flull length.

I think or demonstrates that on my site

Rgds, Wilfried

Met vriendelijke groeten,
Wilfried Mestdagh

Op 26-03-16 om 09:45 schreef Kostas Rizoudis:
Sorry for the mistake Angus,

The first four bytes in the package give the length.
The packet length is variable.
There is an example of how such a package can be received?


Am 25.03.2016 um 19:23 schrieb Angus Robertson - Magenta Systems Ltd:
How can I receive a stream of TWSocketServer with unknown length?
There is only one stream is sent.
You just keep receiving the stream until the connection closes, or you
detect some pre-arranged termination string in the stream, that's how
MIME email works, with separators:

Content-Type: multipart/alternative;


To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to