Announcements
Dear developers:
Actually I wrote a code to save the details of the tax invoice (Customer Reg. No., Amount, VAT amount, ...etc) in a qr code, but the requirement is that the QR detail should be encoded in base64,
How to convert or how to encode inf. in CAL in base64?
Please help
Thanx
Great and thank you for update.
Thanx Dears:
I have done!
Using some functions, First DecimalToHex and TextToHex, Second the result of the first (HexString) converted to binary string, Third the binary string result converted to base64, Finally generated the QR using the famous dotNet variables for doing such a purpose.
Really appreciate
Please follow the below link, see if it help you.
https://www.navwithnav.com/generate-qr-code-in-business-central-using-third-party-webservice-link/
hi
in the Type Helper Codeunit you have 2 function
ConvertValueFromBase64 and ConvertValueToBase64
check my answer if it helped you, thanks
DAniele
Hi, hope the following helps.
https://forum.mibuso.com/discussion/42802/base64-encode-decode
In AL: https://www.kauffmann.nl/2017/07/10/convert-base64-with-al-code/
Thanks.
ZHU
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156