本文整理自网络,侵删。
function TForm1.GetFileSize(aURL: string): integer;
var
FileSize: integer;
begin
IdHTTP1.Head(aURL);
FileSize := IdHTTP1.Response.ContentLength;
IdHTTP1.Disconnect;
Result := FileSize;
end;
相关阅读 >>
Delphi firedac 获取mysql 数据库databases 列表
Delphi d10.x安卓app开发中简单使用原生toast
idftp tencoding and iidtextencoding
Delphi adoquery连接数据库的查询、插入、删除、修改
Delphi systemparametersinfo 用法
更多相关阅读请进入《Delphi》频道 >>