Skip to main content

Posts

Showing posts with the label Base 64

How to Transfer Files through API using Base64 Stream to Business Central

Introduction: Transferring data from Business Central Tables through API is one of the latest version of transferring data from or to Business Central using the API Page Objects or  Web Services. Well, it gets a little difficult to transfer file blobs using the Media.ReadLinks and Media.EditLinks JSON field. Pre-requisite: Understanding of Business Central API Understanding how Blobs are accessible to Business Central AL Language Extension VS Code Understanding of JSON Data Types References: https://www.olisterr.tech/2019/09/understanding-apis-in-business-central.html https://demiliani.com/2020/01/24/dynamics-365-business-central-handling-blob-fields-on-apis/ https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/jsonobject/jsonobject-data-type Solution: 1. Using Business Central API to Pass Data from  BLOB to Base64 String: Whenever you have a file in a BLOB field and want to transfer as a Base 64 string to API - POST Request. Con...