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

Announcements

No record found.

News and Announcements icon
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
    100,471 Super User 2026 Season 1 on at

    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,421 Super User 2026 Season 1 on at

    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,812 Moderator on at
  • Family Corner Profile Picture
    195 on at

    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,812 Moderator on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,072 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,129 Super User 2026 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 650 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans