web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

QR in Base64 encoding

(0) ShareShare
ReportReport
Posted on by 195

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 

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    94,353 Super User 2025 Season 2 on at
    RE: QR in Base64 encoding

    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

  • Suggested answer
    DAnny3211 Profile Picture
    11,391 on at
    RE: QR in Base64 encoding

    hi

    in the Type Helper Codeunit you have 2 function

    ConvertValueFromBase64 and ConvertValueToBase64

    check my answer if it helped you, thanks

    DAniele

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
  • Family Corner Profile Picture
    195 on at
    RE: QR in Base64 encoding

    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

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: QR in Base64 encoding

    Great and thank you for update.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,901

#2
YUN ZHU Profile Picture

YUN ZHU 2,079 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 2,041

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans