Re: CGIDEV2 to present JPGs stored on the IFS?
Viking
As far as I can remember CGIDEV2 (like powerEXT Core) copy its source files to the job?s CCSID. If the job?s CCSID are 65535 this copy will fail since you can?t have a source file with CCSID 65535 so during the installation you may have to change the job?s CCSID to 37.
Source files CCSID is important because all constants in the source code will have the hex/binary representation of that particular CCSID.
If you are not able to get CGIDEV2 installed properly I would suggest that you install powerEXT Core instead. I can mail you a SAVF that are prepared and compiled to CCSID 37 so you just have to dump the SAVF into the library.
powerEXT Core has a full featured CGIDEV2 service program so you are able to run Ralph?s examples just as easely. If you also want to include the powerEXT Core procedures it only requires minor changes to the CGIDEV2 program.
There are in the example source also examples how to run HTTPAPI with powerEXT Core procedures so all in all you get a broader platform.
You can see the program stack here:
Viking
As far as I can remember CGIDEV2 (like powerEXT Core) copy its source files to the job?s CCSID. If the job?s CCSID are 65535 this copy will fail since you can?t have a source file with CCSID 65535 so during the installation you may have to change the job?s CCSID to 37.
Source files CCSID is important because all constants in the source code will have the hex/binary representation of that particular CCSID.
If you are not able to get CGIDEV2 installed properly I would suggest that you install powerEXT Core instead. I can mail you a SAVF that are prepared and compiled to CCSID 37 so you just have to dump the SAVF into the library.
powerEXT Core has a full featured CGIDEV2 service program so you are able to run Ralph?s examples just as easely. If you also want to include the powerEXT Core procedures it only requires minor changes to the CGIDEV2 program.
Code:
/copy qsrc,pxapihdr General H-Spec's * powerEXT Service Program Connector /copy qsrc,pxapicgicn Basic HTTP connecter & Productivity Services * Support for CGIDEV2 native subprocedures /copy qrpglesrc,prototypeb /copy qrpglesrc,usec /copy qrpglesrc,variables3 /free // Clear powerEXT Service Program & Responce Object clearSrvPgm(); setContent(?*none?); // mimic?s prolog3 ?. /copy qrpglesrc,prolog3 if there is HTTP input getExtInput(); ... mix any CGIDEV2 or powerEXT procedures in the following code
You can see the program stack here:
Comment