Skip to main content

Notifications

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 

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: QR in Base64 encoding

    Great and thank you for update.

  • Family Corner Profile Picture
    Family Corner 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
    Nitin Verma 21,091 Super User 2024 Season 1 on at
  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 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
    YUN ZHU Profile Picture
    YUN ZHU 74,036 Super User 2024 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

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans