What is the best way of exporting BLOB?

Sunset
Member Posts: 201
Kicking and screaming we are now entering BC! Therefor I am facing a big upgradeproject which includes going from TempBlob Record to "Temp Blob" Codeunit. Therefor I am looking for some information on how to best use/transfer the old pieces of code into the new one?
For intance I have a lot of places where various files have been stored. And when we want to see the file we use:
Doing outstreams, instreams and copystreams seem like unneccesary/ugly lines of codes. So not knowing enough about streams, I am wondering if there might be a better way.
For intance I have a lot of places where various files have been stored. And when we want to see the file we use:
CALCFIELDS("File as BLOB"); if not "File as BLOB".HASVALUE then ERROR(Text003); BLOBRef.Blob := "File as BLOB"; FileMgt.BLOBExport(BLOBRef, FileName, true);BLOBRef is the old record which I can easily change to the new codeunit. But what is the best way of getting the blob field into the codeunit?
Doing outstreams, instreams and copystreams seem like unneccesary/ugly lines of codes. So not knowing enough about streams, I am wondering if there might be a better way.
Don't just take my word for it, test it yourself
0
Answers
-
Normally I use Downloadstream If I have to download it manually and save somewhere in the Clients Machine.
What's your exact requirement?Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Just about anywhere where you can use BLOBS.
- Various files (Mostly XML) streamed into BLOBs for archieve.
This shouldn't be a problem as it still works the same way. - BLOBs being passed around tables for log and posting purposes.
Should also be ok. - And being exported; both client and serverside.
And this is where we have been using the TempBlob record which is no longer.
Don't just take my word for it, test it yourself0 - Various files (Mostly XML) streamed into BLOBs for archieve.
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions