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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

how Documents are saved in sql server using navision

(0) ShareShare
ReportReport
Posted on by 10

hello everyone, I've a client who wants to retrieve documents from sql server using C# but has no idea how they saved it in the first place, all they know is that they used navision and hp scanner. 

I want to know if anyone can tell me how navision   save documents in the database? (field in navison database is content which is type image and stores blob) I tried to get those bytes and retrun them as pdf but it didnt work.

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Do you mean that you want to store BLOB fields in NAV? Standard NAV attachment table (attachments to document) stores links to external files, not BLOB. I'm not a huge fan of saving BLOB inside the database (it generates inefficiency) but if you need that my suggestion is to create a custom table with the primary key of your document in NAV and a blob field instead of adding a BLOB field to the standard document table. For example, to save the PDF of a Sales Order, instead of adding a BLOB field to the Sales Header table I suggest to create a new "Sales Order PDF" table with fields like Document Type, Document No, BLOB and then insert the pdf on this new table.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans