Einzelnen Beitrag anzeigen

marconi8

Registriert seit: 13. Jul 2003
19 Beiträge
 
#1

TIdHTTP (client) WriteStream - some problem with indy buffer

  Alt 3. Aug 2003, 21:23
people i cannot find in indy help why i got this error...

1. my client application is:
TIdHTTP

2. my server application is:
TIdHTTPServer

3. now client app makes this:

[delphi]
AStream:=TFileStream.Create('readme.txt',fmOpenRea d);

with client do //client is name of TIdHTTP component
begin
try
OpenWriteBuffer(5);
WriteStream(AStream);
CloseWriteBuffer;
except
CancelWriteBuffer;
AStream.Free;
end;
end;


when WriteStream performs i get the error in client app,

error is like : error in parsing command, one word said i cannot copy file trough network into server side

i must to copy with stream file into server....


how can i make this ? and how to make writestream in client withoput errors


thanks
  Mit Zitat antworten Zitat