Mike, thanks .. will check that out
Monday, April 18, 2005, 2:32:11 PM, you wrote: HMM> If you're on UniVerse and on release 10.x (UD 6.x may have the same HMM> functionality, check the IBM reference manuals, for UV it's in the HMM> "Basic Extensions" manual) then you should be able to use the ENCODE() HMM> function. Your code might look a bit like this: HMM> E.DLOC = '1' ; * data passed directly HMM> E.RLOC = '1' ; * result in a string HMM> E.ALG = 'Base64' HMM> E.DATA = '' HMM> E.RESULT = '' HMM> * Note that E.DATA needs to be delimited by a CHAR(10) at the end HMM> for some reason HMM> E.DATA = My.Base64.Encoded.string:CHAR(10) HMM> E.RESULT = '' HMM> E.ACTION = '2' ; * Base64 decode HMM> E.STATUS = ENCODE(E.ALG, E.ACTION, E.DATA, E.DLOC, E.RESULT, HMM> E.RLOC) HMM> IF E.STATUS EQ '0' THEN HMM> CRT ' Plain Text ':QUOTE(E.RESULT) HMM> END ELSE HMM> GOSUB DISPLAY.ENCODE.STATUS HMM> END HMM> HTH HMM> Mike >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of >> David Tod Sigafoos >> Sent: Tuesday, 19 April 2005 05:32 >> To: [email protected] >> Subject: [U2] Decoding 64Base string >> >> I am looking for information on decoding a base64 string. We >> will be receiving this back with an xml stream from a client. >> The base64 string is a image which we must decode and write out. >> >> Anyone having done this? Would love to talk to you about it >> or possibly get snippets to get us on our way. >> >> I have searched the u2ug site but found nothing ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
