UPLOADINTOSTREAM in RTC
ngebhard
Member Posts: 127
Hello everyone,
we used to have a coding to upload a XML-file to a blob field which worked in the classic client. Since some changes were made, we tried to figure it out to get this done in the RTC. The coding is similiar to the one used in the topic viewtopic.php?f=32&t=32458&hilit=CREATEINSTREAM+rtc, so I just copy it from there.
Xml.CREATEINSTREAM(inStr);
filename := 'c:\temp\file.xml'; //threeTier.EnvironFileName('file','xml');
XMLDocIn.save(filename);
UPLOADINTOSTREAM('',threeTier.Magicpath,'',filename,inStr);
If we use this coding, the blob field is still empty and I have no idea why. I am sure that someone already got it to work and it would be very nice if you could help us with this.
Thanks in adance!
Regards
Nicole
we used to have a coding to upload a XML-file to a blob field which worked in the classic client. Since some changes were made, we tried to figure it out to get this done in the RTC. The coding is similiar to the one used in the topic viewtopic.php?f=32&t=32458&hilit=CREATEINSTREAM+rtc, so I just copy it from there.
Xml.CREATEINSTREAM(inStr);
filename := 'c:\temp\file.xml'; //threeTier.EnvironFileName('file','xml');
XMLDocIn.save(filename);
UPLOADINTOSTREAM('',threeTier.Magicpath,'',filename,inStr);
If we use this coding, the blob field is still empty and I have no idea why. I am sure that someone already got it to work and it would be very nice if you could help us with this.
Thanks in adance!
Regards
Nicole
ProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt
0
Comments
-
I have this in a WebService and working:
p_autXMLSalida: XML automation variable.
l_outStream: OutStream variable
l_recTempBLOB: Record to TempBlob tableCLEAR(l_outStream); l_recTempBLOB.INIT; l_recTempBLOB."Primay Key" := 0; l_recTempBLOB.Blob.CREATEOUTSTREAM(l_outStream); p_autXMLSalida.save(l_outStream); l_recTempBLOB.INSERT;
Sergi Navarro
MCTS: Microsoft Dynamics™ NAV 2009 C/SIDE Solution Development
Visit my Navision Spanish Blog here: http://www.sergisoft.com0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions