× 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.



Jack,

you need

host/cgi-bin/pdfdown?xfile=check58339.pdf


On Mon, Feb 25, 2013 at 5:54 PM, Jack Tucky <jacktucky@xxxxxxxxx> wrote:

Thanks Vern.

Scott's code worked to show a hardcoded file name, so now I want to add a
file name to the URL.

I need some code to grab the file name from the URL. I tried this but I'm
getting blanks

nbrVars=zhbgetinput(savedquerystring:qusec);
xfile=zhbgetvar('xfile');

my url would be something like this:

....host/cgi-bin/pdfdown?check58339.pdf


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Vernon Hamberg
Sent: Monday, February 25, 2013 11:47 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Link to a PDF on IFS

Jack

Here is a full article - maybe it was listed in that forum entry - you need
either a membership or subscription -


http://www.iprodeveloper.com/article/rpg-programming/cgi-programs-can-return
-pdfs-18023

HTH
Vern

On 2/25/2013 10:17 AM, Jack Tucky wrote:
Wow that worked awesome. I need to figure out how to send the pdf
file name to that program. I guess I include it as a parm on the URL.

Jack

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Kevin Bucknum
Sent: Monday, February 25, 2013 10:24 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Link to a PDF on IFS

An example from Scott Klement:
http://www.iprodeveloper.com/forums/aft/46704

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Jack Tucky
Sent: Monday, February 25, 2013 9:19 AM
To: 'Web Enabling the IBM i (AS/400 and iSeries)'
Subject: Re: [WEB400] Link to a PDF on IFS

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.


--
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.




Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550


--
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.

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.