Skip to main content

Notifications

How To Upload and Download a File in Business Central using InStream and OutStream

Hello All,

In this article we will see 2 functionalities.

  1. How to upload a file and store it to table and
  2. How to download a file from table.

Prerequisites:

  • Dynamics 365 Business Central Sandbox Environment.

Steps,

  1. Create Table to store file.
  2. Create a page.
  3. Create a functions for upload and download file.
  4. 4.Call that functions from page.

 

1. Create a table that contain Blob field which will store the file content.

 

2.Create a Page and add an action for Import File and Export File to Upload and download it.

 

 

 

 

3. Create functions for upload and download file.

 

4. Call these functions on OnAction trigger.

 

Now we will see that how it work.

We will import 3 types of files: text, pdf and jpg.

 

 

 

Now we will export these files and we can download them.

 

 

 

So using InStream and OutStream we can upload and download file in Business Central.

The post How To Upload and Download a File in Business Central using InStream and OutStream first appeared on MADHDA Business Solutions.

The post How To Upload and Download a File in Business Central using InStream and OutStream appeared first on MADHDA Business Solutions.


This was originally posted here.

Comments

*This post is locked for comments