Send and receive a TMemoryStream
Posted on 2003-03-25
I'm trying to send a memory stream that contains a picture through the network, using TClientSocket and TServerSocket. I found the SendStream procedure and my two computers are connected but I'm not able yet to recover what I sent. I tried with ReceiveBuf but this doesn't seem to work. Could someone help me with this ? How exactly should I do to send the MemoryStream and then to directly put its content into another MemoryStream when I receive it ? I would be grateful if someone could help as soon as possible. Thanks in advance.
P.S. : I work with Delphi 5.