用IdHTTP1.get做DownLoadInternetFile的功能? |
缺席
|
shinhrn
中階會員 發表:54 回覆:165 積分:83 註冊:2002-06-05 發送簡訊給我 |
不知IdHTTP1.get是否可以做到如DownLoadInternetFile的功能,
只有來源是一個檔案時才下載存檔... http://www.msnusers.com/testmytest/msgattachments/3
而不會將它以網頁資料來儲存?
procedure TForm1.Downloadtest(); var fs: TFileStream; begin try fs := TFileStream.Create('d:\pict\test.jpg', fmCreate); try IdHTTP1.get('http://www.msnusers.com/testmytest/msgattachments/3', fs); finally fs.Free; end; // DownLoadInternetFile('http://www.msnusers.com/testmytest/msgattachments/3','d:\pict\test.jpg'); except end; end;發表人 - shinhrn 於 2004/10/15 17:08:49 |
wameng
版主 發表:31 回覆:1336 積分:1188 註冊:2004-09-16 發送簡訊給我 |
|
shinhrn
中階會員 發表:54 回覆:165 積分:83 註冊:2002-06-05 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |