显示图片
var FS: TFileStream; S: string; begin S := ExtractFilePath (ParamStr (0))+ Request.PathInfo; Response.ContentType := 'image/png'; FS := TFileStream.Create(S , fmOpenRead); Response.ContentStream := FS; Response.SendResponse; Handled := True; end;
显示文本
S := ExtractFilePath (ParamStr (0))+ Request.PathInfo; FS := TFileStream.Create(S , fmOpenRead); Response.ContentStream := FS;
标签:FS,PathInfo,Create,TFileStream,webBroker,文本文件,ExtractFilePath,Response,图片 From: https://www.cnblogs.com/tulater/p/18634208