Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to decode a base64 coded string in a BigText variable?

(0) ShareShare
ReportReport
Posted on by

I have a very large string (250.000 chars) in a BigText variable, the string is coded Base64...

I want to decode the string and save it to another BigText variable, but I don't know how??

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    on at
    RE: How to decode a base64 coded string in a BigText variable?

    Solved it....  :D

    abpBigPDFText BigText  
    abpAutConvertBase64 DotNet 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Convert 
    abpAutBytes DotNet 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Array 
    abpAutMemoryStream DotNet 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.IO.MemoryStream 
    abpOutStream OutStream  
    abpRecTempBlob Record TempBlob 


    abpAutBytes:=abpAutConvertBase64.FromBase64String(abpBigPDFText);
    abpAutMemoryStream:=abpAutMemoryStream.MemoryStream(abpAutBytes);
    abpRecTempBlob.Blob.CREATEOUTSTREAM(abpOutStream);
    abpAutMemoryStream.WriteTo(abpOutStream);
    abpRecTempBlob.Blob.EXPORT('c:\temp\test.pdf');

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans