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 :
Finance | Project Operations, Human Resources, ...
Suggested answer

How to Convert Base64 to PDF through X++

(1) ShareShare
ReportReport
Posted on by
Hi Experts,
 
My requirment is that i want to convert base64 string to pdf in dynamics 365 f&o and want to print that pdf file on user screen. Again! Base64 to pdf not pdf to base64.
 
Thanks.
 
Irfan Ayoub.
  • Suggested answer
    Martin Dráb Profile Picture
    on at
    How to Convert Base64 to PDF through X++
    Moved from Dynamics AX forum.
     
    I'll assume that you have a string containing contents of a PDF file encoded with Base64. If not, then your question doesn't make sense.
     
    There are several ways how to convert a Base64 string to an X++ container or .NET byte array. For example, you can use base64str2con() method.
     
    This thread is just about How to Convert Base64 to PDF through X++, but let me give you a hint for your next step, i.e. sending to a printer. You will find an example in How-to send PDF document to a printer from X++.
  • Layan Jwei Profile Picture
    on at
    How to Convert Base64 to PDF through X++
    Hi,

    I'm not sure if this old link will help somehow, but u can give it a try
    https://devblog.sertanyaman.com/2017/08/01/using-base64-for-file-transfer-in-ax-2012/

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future. You can do this by ticking the box "Does this answer your question"
  • Hana Xue Profile Picture
    on at
    How to Convert Base64 to PDF through X++
    Hi,
    You can also simply view if the link below is helpful.
    jacquesdev.blogspot.com
    Best Regards,
    Hana

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 > Finance | Project Operations, Human Resources, AX, GP, SL

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans