I would like to learn more about #2. Any examples would be appreciated.
Jack
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Schadd Gray
Sent: Monday, February 25, 2013 8:41 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Link to a PDF on IFS
I do not know much about LANSA, but in other web languages, if the PDF file
on the IFS is outside of the web directory (/www/mysite/htdocs) you cannot
expose it to the web. You have two choices. 1) Place the PDF in the web
directory, but this allows every web user to access this PDF if they know
the path (not very secure). 2) Write a program to read the file from the
IFS and pipe it to the browser. You would need to change the content type
to "application/pdf".
Thank you,
Schadd Gray
Damon Technologies, Inc.
www.damontech.com
-----Original Message-----
From: Jack Tucky
Sent: Sunday, February 24, 2013 7:37 PM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Link to a PDF on IFS
I'm using LANSA on Iseries to run a website. The user can press a button, I
call a CLP and create a PDF and email it to the end user.
I'd like to change it to display the PDF in the browser. The PDF is on the
IFS. I know the path and file name of the PDF.
What do I have to do to change the webserver show files from a specific
directory on the IFS?
Thanks, Jack.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.