delphi中的idhttpserver如何才能收到idhttp發送來的exe\rar檔案呢

來源:互聯網
上載者:User

標籤:

http://zhidao.baidu.com/link?url=-q2oXqYCKBZ9OgFDEHAcQwQEY_NroHcqGvVfKW67X5sF9LdjAAB_HPXQo04VxStFVS7yo_LkxLRWjgDoZXRdd_delphi中的idhttpserver如何才能收到idhttp發送來的exe\rar檔案呢 分享| 2008-06-18 00:01nkym0626 | 瀏覽 1811 次  懸賞:5 程式設計語言伺服器軟體
我用idhttp傳送檔案,idhttpserver只能收到txt之類的檔案.
鬱悶死我了
我有更好的答案 1條回答舉報| 2013-12-30 09:15huahua1237 | 五級 最快回答用字串流的形式發送給SERVER

sr:string;
//把你的流轉字串
stringstream:=TStringStream.Create(sr);
self.IdscrreenHTTP.Post(‘http://127.0.0.1:5555‘,stringstream);

伺服器端接收的值在這裡
ARequestInfo.FormParams

//流到字串
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;

如果不明白可加QQ646320175

delphi中的idhttpserver如何才能收到idhttp發送來的exe\rar檔案呢

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.