Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to get an Image fields to print in Power BI Report Builder?

Posted on by 42

Hello, 

I have written a Business Central Query Extension to get the field "Image" and exported it in a Web Service to Power BI.

pastedimage1680340817538v1.png

What I get is the string that should connect the real image bitmap.

How can I set the Query in order to get the image bitmap and not the string as a key?

Later I will use too the dataset with the image bitmap in Report Builder.

Thanks in advance,

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,333 Super User 2024 Season 2 on at
    RE: How to get an Image fields to print in Power BI Report Builder?

    Hi, just adding some info for Report Builder.

    You can refer to the standard function below to display your images.

    pastedimage1680482357536v3.png

    table 79 "Company Information"

    pastedimage1680482212362v1.png

    report 1305 "Standard Sales - Order Conf."

    pastedimage1680482258953v2.png

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: How to get an Image fields to print in Power BI Report Builder?

    What you will ned to do is first to put the image (content of the blob field) into a stream and then convert the stream to a base 64 string before you use the base 64 encoded string as the return value for your webservice.

    procedure ToBase64(InStream: InStream): Text

    learn.microsoft.com/.../system_application_codeunit_base64_convert

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans