Stream into .NET Component
pijnappel
Member Posts: 6
Hi,
I'm trying to read a from a BLOB through Navision streams and
give the stream to my .NET Interop component as a parameter.
I saw Navisions streams are compatible to the COM VT_STREAM type
but i had no luck by handling this type in C# :roll:
Is there any solution to handle Navision streams in a automation component? What I need is the BLOB e.g. as byte-array.
Thanks
Timo
I'm trying to read a from a BLOB through Navision streams and
give the stream to my .NET Interop component as a parameter.
I saw Navisions streams are compatible to the COM VT_STREAM type
but i had no luck by handling this type in C# :roll:
Is there any solution to handle Navision streams in a automation component? What I need is the BLOB e.g. as byte-array.
Thanks
Timo
0
Comments
-
I believe that you can 'translate' a BLOB into an outstream, and you can pick apart an oustream into a byte array in C#.0
-
I can really get the Blob into an OutStream, but my problem is to find the
right way to read it in c#. Which type is needed to take the Navision Outstream?
When I set the parameter Type to byte[] it is translated to a SAFEARRAY
type in COM. After filling this parameter with my OutStream Navision Compiles
the object but shows an error when I try to run it, saying Navision can
only handle the following Types VT_...blabla0 -
I don't know what type the outstream maps to. I do know that you can use the IDispatch object in C#, which maps to a message object in Navision. I'd have to dig in my projects to find an example for you, and that may take some time.0
-
Hi,
have the same problem. I try to offer the IStream-Handle of my C#.Net Apps
via COM to Navision. So I would like to get/set the content of a blob. But Navision only accept trival datatypes ...
Got anyone a solution?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
