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.
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,524 Super User 2024 Season 2
Martin Dráb 228,469 Most Valuable Professional
nmaenpaa 101,148