I am having problems sending .pdf files from a CGI application. My code:
Filename := Path+Document+'.pdf'; Fs := TFileStream.Create(Filename, fmOpenRead, fmShareDenyNone); Response.ContentType := 'application/pdf'; Response.ContentStream := Fs; The problem is that sometimes the file is not sent. The HTTP request needs to be sent more than once to get the document actually sent. Do I need to do Response.SendResponse; after the above code? Am I doing something I shouldn't or not doing something I should. Thanks, Doug