Recent

Author Topic: <Solved> CGI | returning a File (PDF)  (Read 1553 times)

cpalx

  • Hero Member
  • *****
  • Posts: 754
<Solved> CGI | returning a File (PDF)
« on: September 30, 2019, 03:59:22 am »
Hello,

How could i return a file when some visit the page ( CGI )

somethinglike : http://myweb/cgi-bin/MyCGI
and then return the file to download

the file will be create automatically in /opt/someplace/
« Last Edit: September 30, 2019, 10:47:13 pm by cpalx »

egsuh

  • Hero Member
  • *****
  • Posts: 1708
Re: CGI | returning a File (PDF)
« Reply #1 on: September 30, 2019, 05:02:41 am »
Files can be passed to the client browser via  TResponse.ContentStream.

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: CGI | returning a File (PDF)
« Reply #2 on: September 30, 2019, 10:46:31 pm »
thanks, that is exactle was i looking for

 

TinyPortal © 2005-2018