Doug Hale wrote:
> I am using Delphi 7 and Apache 2.2.10 on Windows XP Ver 2002 service pack 3
> 
> I have a CGI application that provides access to PDF files.

That sounds like you're having trouble uploading, not downloading.

> During the download of larger files, the CGI exe just unloads without 
> finishing the transfer.

No exceptions?

> My Code:
>     Filename := Path+Document+'.pdf';
>     Fs := TFileStream.Create(Filename, fmOpenRead, fmShareDenyNone);
>     Response.ContentType := 'application/pdf';
>     Response.ContentStream := Fs;
>     Start := DateTimeToTimeStamp(Now);
>     Response.SendResponse;
>     Fs.Free;

What is Response? What library are you using for CGI?

Does it work correctly when you run your program from the command 
prompt? Set the environment variables right, and you should get the PDF 
contents printed to standard output.

> Response.SendResponse never returns, the exe just unloads.
> 
> Is there something I'm not doing that I should or something I did that I 
> shouldn't?


-- 
Rob

Reply via email to