Sending MemoryStream

im trying to use TTreadInfo to send a MemoryStream, i used it but in sending files like

[code]
Function SendFile();
var
ThreadInfo : TThreadInfo;
Begin
ThreadInfo := TThreadInfo.Create(Configuracion.sHost, Configuracion.iPort, IntToStr(SH),'myfile.dat', 'CAP', 0);
BeginThread(nil,
0,
Addr(ThreadedTransfer),
ThreadInfo,
0,
ThreadInfo.ThreadId);
end;
[/code]

is there any way to use TThreadInfo with memorystream??i really need to send a picture without saving it to disk and im using TThreadinfo so that my program doesn't stop Responding until the image transfer complete, and i can't use anything except TThreadInfo

please help
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories