web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans