|
Ah - yes - BASE64_DECODE returns a blob without CCSID (or better with
*HEX).
I solved this lately with a DS:
dcl-ds decoded qualified;
blob varchar(1000);
utf8 varchar(1000) ccsid(*utf8) samepos(blob);
end-ds;
exec sql set :decoded.blob = QSYS2.BASE64_DECODE(:encoded);
return decoded.utf8;
I think this works quite OK - you could of course do this also with some
pointer-arithmetic.
HTH
Daniel
As an Amazon Associate we earn from qualifying purchases.
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.