Http://zhidao.baidu.com/link?url=-q2oXqYCKBZ9OgFDEHAcQwQEY_NroHcqGvVfKW67X5sF9LdjAAB_HPXQo04VxStFVS7yo_ Lkxlrwjgdozxrdd_how can the Idhttpserver in Delphi receive the Exe\rar file sent by idhttp? Share | 2008-06-18 00:01nkym0626 | view 1811 reward:5 programming language Server Software
I send files with idhttp, Idhttpserver can only receive files such as txt.
I'm so depressed!
I have a better answer.1 answers Report | 2013-12-30 09:15huahua1237 | Level five fastest answer Sent to the server in the form of a string stream
sr:string;
Put your flow string
Stringstream:=tstringstream.create (SR);
Self. Idscrreenhttp.post (' http://127.0.0.1:5555 ', stringstream);
The server-side received the value here
Arequestinfo.formparams
Stream to String
function streamtostring (astream:tstream): string;
Begin
If astream.size = 0 Then
Result: = '
Else
Begin
SetLength (Result, astream.size);
Astream.position: = 0;
Astream.read (result[1], astream.size);
End
End
If you don't understand, add QQ646320175 .
How can the Idhttpserver in Delphi receive the Exe\rar file sent by idhttp?