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



Heelo all,i am rather new to using webservices, so please bear with me.
I could do some simple services, using SQLRPGLE, and the installation wizard from iNavigator.Usually, i define parameters (fields, structures, arrays) to be passed as JSON.
Next, i want to return a PDF document.
For my proof of concept, i am thinking of:
1. Get PDF from IFS, convert with BASE64_ENCODE into a CLOB.       (Works)
2. Convert CLOB back with BASE64_DECODE and write it to IFS for verification.    exec sql SET :myVarchX  = QSYS2.BASE64_DECODE(:myVarchOut);      (on compile, i Get SQL0312, dont know why?).

3. When this works, implement as webservice and return the Base64 encoded CLOB. 
4. How to define parameters in my RPG program? As SQLTYPE(CLOB)?

Or ist here an much much easier way of doing this? (I guess there is!)

Thank you all for hints, or maybe working examples!
Best regards from Switzerland, Martin Neugebauer

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.