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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to access image from Picture content in Business Central.

(0) ShareShare
ReportReport
Posted on by 163
Hi All,

Good Morning

I am using On-Prem Business central.

I have created on Item API which is returning the content(from Tenant Media table) of picture as below URL(Item table have 9000 records),  now my html web page is calling this API but not able to access the image or to show in the image tag of html using this URL. I tried to do with many ways but able to find a proper solution.

Anyone have idea about the URL how i can decode it to show the image.
If anyone have any idea please share and you can also share any code snip if you have.
 
 
"PictureContent@odata.mediaReadLink": "https://wmsbhavna.kloudplus.com:7053/BhavnaBC194UAT/ODataV4/Company('Bhavna%20Pte%20Ltd')/GetItemsDetail(ItemNo='10010500001',Line_No_=10000,Price_List_Code='S00001',BarCodeNo='0103616304158032',AuxiliaryIndex1='10010500001',AuxiliaryIndex2='',AuxiliaryIndex3='CTN',AuxiliaryIndex4='Bar%20Code',AuxiliaryIndex5='BARCODEVAL',AuxiliaryIndex6=00000000-0000-0000-0000-000000000000)/PictureContent"

Thanks for your help.
I have the same question (0)
  • Suggested answer
    Vahid Ghafarpour Profile Picture
    11,930 Super User 2025 Season 2 on at
    How to access image from Picture content in Business Central.
    To display an image from an API URL in your HTML web page, you need to fetch the image data and set it as the source of an <img> tag.
     

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 201

#2
DAnny3211 Profile Picture

DAnny3211 134

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 129 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans