InStream Problems
jfelgueiras
Member Posts: 7
Hi,
Any one know how I can use a inStream twice?
I explain:
I received a InStream (from a MSQueue). I need to generate a XMLDocument (using Xmldoc.load(inStream) to verify some XML tags, but I need to keep the inStream for using in a XMLPort (using XMLPORT.IMPORT(50000,inStream);
The problem is that when I load the XMLDocument I can't use the inStream anymore. the trouble is that I can't use the file System for Security reasons.
Can anyone help me?
thank you
Any one know how I can use a inStream twice?
I explain:
I received a InStream (from a MSQueue). I need to generate a XMLDocument (using Xmldoc.load(inStream) to verify some XML tags, but I need to keep the inStream for using in a XMLPort (using XMLPORT.IMPORT(50000,inStream);
The problem is that when I load the XMLDocument I can't use the inStream anymore. the trouble is that I can't use the file System for Security reasons.
Can anyone help me?
thank you
0
Comments
-
Create two variables?0
-
ara3n wrote:Create two variables?
I doesn't work. If I assign the instream (before i use it) to another variable. wen I use the first instream variable the other one becomes empty.0 -
save the xml to a file and create another stream from the file.
Xmldoc.save(c:\temp\tempxml.xml);
myfile.open(c:\temp\tempxml.xml);
myfile.createinstream(istream2);0 -
Yes, thats the way I resolved my problem, but I created a temporaryfile instead (file.createtempfile).
But I would know if there is no other way. Because, if I can, I prefer not to use the file system.
Do you know other way?
Thank you0
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
- 333 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 991 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
