Hello, You can try something like this... //uses list SysUtils, uIdCustomHTTPServer, uIdGlobal procedure TUniServerModule.UniGUIServerModuleHTTPCommand( ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var Handled: Boolean); begin if (ARequestInfo.Document <> '') and (SysUtils.FileExists(ExtractFilePath(ParamStr(0)) + ARequestInfo.Document)) then begin AResponseInfo.ContentType:='application/octet-stream'; AResponseInfo.ContentStream := TIdRead