base64

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
soa
Posts: 287
Joined: Mon Dec 07, 2015 3:15 pm

base64

Post by soa » Sat Aug 18, 2018 4:03 pm

The jira api requires that I concat my username and a token and then base 64 encode it. Is this possible in LANSA?

MarkD
Posts: 620
Joined: Wed Dec 02, 2015 9:56 am

Re: base64

Post by MarkD » Mon Aug 20, 2018 9:29 am


tsupartono
Posts: 74
Joined: Wed Jan 25, 2017 11:12 am

Re: base64

Post by tsupartono » Mon Aug 20, 2018 9:51 am

Please find the usage example below.

Code: Select all

Define_Com Class(#XPRIM_Binary) Name(#Bin)

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

soa
Posts: 287
Joined: Mon Dec 07, 2015 3:15 pm

Re: base64

Post by soa » Mon Aug 20, 2018 10:16 am

Thanks Tony

Post Reply