Page 1 of 1

base64

Posted: Sat Aug 18, 2018 4:03 pm
by soa
The jira api requires that I concat my username and a token and then base 64 encode it. Is this possible in LANSA?

Re: base64

Posted: Mon Aug 20, 2018 9:29 am
by MarkD

Re: base64

Posted: Mon Aug 20, 2018 9:51 am
by tsupartono
Please find the usage example below.

Code: Select all

Define_Com Class(#XPRIM_Binary) Name(#Bin)

#Bin.FromStringUsingUTF8 String(#MyUserAndToken)
#EncodedToken := #Bin.AsBase64String

Re: base64

Posted: Mon Aug 20, 2018 10:16 am
by soa
Thanks Tony