web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Business Central Base64 Blob Page field shows up twice on API

(0) ShareShare
ReportReport
Posted on by 82

Hi fellow developers!

We are trying to send .PDF in Base64 format via API to an integration partner. I am able to convert document to Base64 and save it in a BLOB field but when I call the API, the field always show up twice identically on the API Json like below.

I have double checked and there is only one table field and one page field added, and it's the same duplication for both Custom API and WebService Page API. It's confusing and redundant for our business partner. Is there a way to fix this? Seems like a bug to me.

{
    "@odata.context": "xxx/ODataV4/$metadata#Company('TEST')/WarehouseShipmentHeader",
    "value": [
        {
            "@odata.etag": "xxx",
            "Shipment_Label_Base64@odata.mediaEditLink": "https://api.businesscentral.dynamics.com/v2.0/xxx/ODataV4/Company('TEST')/WarehouseShipmentHeader('xxx')/Shipment_Label_Base64",
            "Shipment_Label_Base64@odata.mediaReadLink": "https://api.businesscentral.dynamics.com/v2.0/xxx/ODataV4/Company('TEST')/WarehouseShipmentHeader('xxx')/Shipment_Label_Base64"
        }
    ]
}

I used below code to add the field to table and page:

#table field:
field(12345; "Label In Base64"; Blob)
{
    DataClassification = CustomerContent;
}

#page field:
field("Shipping_Label"; rec."Label In Base64")
{
    ApplicationArea = All;
    Caption = 'Shipping Label Base64';
}


  • Suggested answer
    Bilal Haider Profile Picture
    487 on at

    Hi Ginger Frog,

    These are not the same one is content@odata.mediaEditLink that is Link to upload data while other is content@odata.mediaReadLink that Link to download data.

  • Suggested answer
    Bilal Haider Profile Picture
    487 on at

    Try making this field Editable = false so other can only read and edit link may be removed.

  • Ginger Frog Profile Picture
    82 on at

    AHHHH that's it!! Thank you Bilal that removed the editlink Json.

  • selak Profile Picture
    12 on at
    @Bilal, but these two Links are the same. Does it make sence?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 645 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 432 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 248 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans