Convert teks into 64bit encode in Ax 2012.

Berikut script sederhana untuk bind data teks kedalam 64bit encode.

static void convertInto64encode(Args _args)
{
str teks = “12B03226A6D8BE9C6E8CD5E55DC6C7920CAAA39DF14AAB92D5E3EA9340D1C8A4D3D0B8E4314
F1F6EF131BA4BF1CEB9186AB87C801AF0D5C95B1BEFB8CEDAE2B9”;
container cont = BinData::stringToData(teks);
BinData binData = new BinData();

binData.setData(cont);
info(strFmt(“%1”, binData.base64Encode()));
}

Semoga membantu.

Happy coding šŸ™‚

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: