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: 339
Joined: Mon Dec 07, 2015 3:15 pm

base64

Post 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?
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: base64

Post by MarkD »

tsupartono

Re: base64

Post 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
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: base64

Post by soa »

Thanks Tony
Post Reply