It is as simple as this to put a pdf from OPT01 to the net:

/copy qsrc,pxapihdr General H-Spec's

* powerEXT API Connectors
/copy qsrc,pxapicgicn Basic HTTP connecter & Basic Services

/free
clearSrvPgm();

echoBinToClient('application/pdf'
:'/QOPT/SAMSUNG_CLP/MANUAL/ENGLISH/guide_en.pdf');

*inlr = *on;
return;

/Henrik




"Marvin Radding" <marvin.radding@xxxxxxxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
03-05-2010 23:15
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
<rpg400-l@xxxxxxxxxxxx>
cc

Subject
Accessing OPT01






Is there a way to access a file on OPT01 from an RPG program?

I am researching ways to get data off of a DVD and I would like to avoid
having to copy the file from the DVD to the IFS before being able to
access the data in the file.

I have created a DKTF file but I am not sure that is the way to go.

If anyone know how to access OPT01, please let me know.

Marvin

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