<div><br clear="all">Hi </div>
<div> </div>
<div>Any one have any idea how to tranfer the image from one server to another server usinng client socket. well i have doen the following things</div>
<div> </div>
<div>frist i have makde sure it get connects to the server. It gave me message saying connected too</div>
<div> </div>
<div>then i used the following code</div>
<div> ClientDataStructure.ClientStrmData := TMemoryStream.Create;</div>
<div> FillChar(ServerDataStructure.ServerFileSource,SizeOf(ServerDataStructure.ServerFileSource),0);</div>
<div>-----</div>
<div>----</div>
<div> StrPCopy(ServerDataStructure.ServerFileName,SourceFileName)</div>
<div> </div>
<div>------</div>
<div>-----</div>
<div> ClientDataStructure.ClientStrmData.Seek(0,soFromBeginning);</div>
<div> </div>
<div> ClientDataStructure.ClientStrmData.Write(ServerDataStructure.ServerFileName,SizeOf(ServerDataStructure.ServerFileName));</div>
<div>-----</div>
<div>-----</div>
<div>this is the source code i have also added the sam destination code in it where i have mentioend blank spaces</div>
<div> </div>
<div>in the end it says</div>
<div> ClientDataStructure.ClientStrmData.CopyFrom(ClientDataStructure.ClientFileStream,0);<br> ClientDataStructure.ClientStrmData.Seek(0,soFromBeginning);<br> ClientSocket.Socket.SendStream(ClientDataStructure.ClientStrmData);</div>
<div> </div>
<div>it says succes in the end</div>
<div> </div>
<div>but i dint able to see any file in destination thing</div>
<div> </div>
<div>any diea where i am missing or u suggest any better apporach. </div>
<div> </div>
<div>Regards</div>
<div>Vikas</div>
<div> </div>
<div> </div>
<div> </div>
<div><br>-- <br> vikas </div>