Is there any plugin to convert text to Base64 encoding.

Hi,


check out BinaryData module/xif


Solution

In addition to J's answer, the BinaryData Module contains a BinaryToBase64, which, as the name implies, converts Binary Data to Base64. To convert Text to Base64, you therefore need to first convert the Text to Binary Data, which can be done via TextToBinaryData from the same Module. So you'll get something like:

BinaryToBase64(TextToBinaryData(MyText))
Solution

Is there xif for non base64 to text?

Hi Siew,

I'm not sure what you mean. What is "non base64"? What do you want to convert to Text?

I got this error msg,
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. 

I am trying to convert Base64 to string.


siew wah low wrote:

I got this error msg,
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. 

I am trying to convert Base64 to string.


Try this website to see if it's a problem with you component or with the base64 string: https://www.base64decode.org/ 

If this also fails than it's more likely your data that is corrupt then anything else. 


Hi Siew,

What is the source of this base64 text?

Vincent Koning wrote:

siew wah low wrote:

I got this error msg,
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. 

I am trying to convert Base64 to string.


Try this website to see if it's a problem with you component or with the base64 string: https://www.base64decode.org/ 

If this also fails than it's more likely your data that is corrupt then anything else. 


Thanks Vincent.