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



You can show a pdf directly by streaming the content into a html page.

Like this:

// convert the tiff to pdf
Tiff2PDF .......

// Get the PDF document from ifs
FileDescI = open(%trimr('/home/costagliol/184052.pdf') :
            O_RDONLY);
Dou nByteRead <= 0;
  nByteRead = read(FileDescI : bufferIp : nByteSet);
  inputLng += nByteRead;
Enddo;

// write document to cgi
Header = 'Content-Type: application/pdf' + newline +
         'Content-Length: ' + %trim(%char(inputLng)) + newline +
         'Content-Disposition: inline; filename=a.pdf'  +
         newline + newline;
QtmhWrStout (Header:%len(%trim(Header)):ApiError);
QtmhWrStout (BufferI:inputLng:ApiError);


----- Original Message ----- 
From: <lcrane@xxxxxxxxxxxxx>
To: <web400@xxxxxxxxxxxx>
Sent: Tuesday, July 19, 2005 7:51 PM
Subject: [WEB400] PHP calling RPG program


> Can anyone offer any examples, good websites or books on how to call RPG
> programs from within a PHP script running on the iSeries using PASE?
>
> I am trying to call an RPG program with parameters from within PHP.  We
> have a web site running .NET but need to access our images on the iSeries
> that have been scanned and placed into the IFS.  The images have been
> scanned in as a .TIF and we are running an RPG program to convert this
> images from a .TIF to .PDF and display on web using PHP/RPG.
>
> Thanks in advance.
>
> Lori Crane
> Trans American CHB
> 716-896-7800 x261
>
> CONFIDENTIALITY NOTICE:  This email transmission and any documents, files,
> or previous e-mail messages attached to it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you are not the intended recipient, or a person responsible for
> delivering it to the intended recipient, you are hereby notified that any
> further review, disclosure, copying dissemination, distribution, or use of
> any of the information contained in or attached to this e-mail
transmission
> is strictly prohibited.  If you have received this message in error,
please
> notify the sender immediately by e-mail, discard any paper copies, and
> delete all electronic files of the message.  The recipient should check
> this email and attachments for the presence of viruses.  We accept no
> liability for any damage caused by any virus transmitted by this email.
>
> -- 
> This is the Web Enabling the AS400 / 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 ...

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.