Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

QR in Base64 encoding

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,023 Moderator 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,023 Moderator on at
  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,217 Moderator 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 69,760 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans