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 :
Small and medium business | Business Central, N...
Answered

Converting outstream object to base64 string in Wave 2

(0) ShareShare
ReportReport
Posted on by

Hi, Can anyone guide me how to convert outstream object to base64 string in wave 2?
Previously it was done using temp blob record type variable.

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,001 Super User 2025 Season 2 on at

    Please search for "base64" in below link

    github.com/.../BREAKINGCHANGES.md

  • Faran Mahboob Profile Picture
    on at

    Already gone through the link, required function is ToBase64 in code unit Temp blob but it requires parameter in text type but i'm not being able to convert outstream object to text...

  • Mohana Yadav Profile Picture
    61,001 Super User 2025 Season 2 on at

    <deleted>

  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at

    Use codeunit "Base64 Convert" to convert to base64.

    Ex : ReturnValue := Base64Convert.ToBase64(stream);

  • Suggested answer
    Viki NTS Profile Picture
    250 on at

    Hi,

    function ToBase64String moved to 4110 "Base64 Convert"  codeunit and it has following overloading methods.

    ToBase64(String: Text): Text

    ToBase64(String: Text; InsertLineBreaks: Boolean): Text

    ToBase64(InStream: InStream): Text

    ToBase64(InStream: InStream; InsertLineBreaks: Boolean): Text

    Create variable for the Codeunit and pass stream as argument into ToBase64String function

    for more business central breaking changes follow below link and see Base64 Convert Module

    github.com/.../BREAKINGCHANGES.md

    Note : make sure you are using right symbols. get latest docker container of Business Central Release Wave 2 and download symbols again with BaseApp and SystemApp Dependencies

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans