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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

File Management

(0) ShareShare
ReportReport
Posted on by 795

Hello Expert

I have one query regarding File Management I have exposed a codeunit to external application for CRUD operation in one function we have Attachments  in which they are passing blob value 

so if I write that value in blob filed then I want to decode it to file to original format and  store this file in local machine how it is possible ?

I have the same question (0)
  • Suggested answer
    Raju Gudipalli Profile Picture
    185 on at

    Check Codeunit 419 File management

    Example-BlobExport functions 

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at

    You can convert that blob to instream, and download the instream to local machine.

  • Muhammad Arif Maseed Profile Picture
    795 on at

    Thank you for the response,

    @Teddy Herryanto  can you please share one example.

  • Community Member Profile Picture
    on at

    You can make changes to the blob to make it instream.

    And then download the instream to your system.

    Regards.

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at

    CalcFields("My BLOB");

    "My BLOB".CreateInStream(InStr);

    File.DownloadFromStream(InStr, 'Download', '', '', "File Name");

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

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 612 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 489 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 285 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans