× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.