This should be enough to get you going although i haven't used it in a
while ...
C_BLOB($PDF_X)
$PDF_X := MyDocumentConvertedToBLOB
set response header('Content-type'; 'application/pdf')
set response header("Content-Disposition"; "attachment;
filename="MyDocument.PDF")
delete response header("Pragma")
delete response header("Cache-Control")
set content type("application/octet-stream")
//Bug for IE on Windows, if the connection is SSL and NO cache/pragma and
the file is a Pdf, doesnt work
set cache control("")
write blob($PDF_X; "application/octet-stream")
On Mon, Mar 10, 2014 at 8:18 AM, David Wright <[email protected]>wrote:
> I did trawl through there before starting the thread, and I have tried
> again this morning.
>
> I don't have any idea how this could work, so maybe I'm just not putting
> the right search terms in.
>
> David
>
> On 10 Mar 2014, at 12:37, Aparajita Fishman wrote:
>
> > I'm pretty sure this has been discussed on the list before, search the
> nabble archive.
> >
> > On Mar 10, 2014, at 11:33 AM, David Wright <[email protected]>
> wrote:
> >
> >> Brad,
> >>
> >>> Active4D serves the document. I don't have code handy to show you how
> to do that but I think there might be an example in the Active4D documents
> (it might have been for serving images on the fly, but the same concept
> applies). IIRC you set a response header that will result in a download,
> read the file from disk and stream it to the user.
> >>
> >> Thank you very much for the overview.
> >>
> >> It is this part (quoted above) which I'm struggling with. Basically I
> need to make an Active4D page read a PDF file and display it without
> revealing its path.
> >>
> >> I just need kicking in the right direction...
> >>
> >> All the best,
> >>
> >> David Wright
> >> _______________________________________________
> >> Active4D-dev mailing list
> >> [email protected]
> >> http://list.aparajitaworld.com/listinfo/active4d-dev
> >> Archives: http://active4d-nabble.aparajitaworld.com/
> >
> > Regards,
> >
> > Aparajita
> >
> > _______________________________________________
> > Active4D-dev mailing list
> > [email protected]
> > http://list.aparajitaworld.com/listinfo/active4d-dev
> > Archives: http://active4d-nabble.aparajitaworld.com/
>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/
>
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/