Stream blob in bigtext
ACaignie
Member Posts: 91
Hello,
I need to copy the contents of a blob field into a bigtext. For this purpose I use an instream variable, but this doesn't seem to work in RTC.
In classic client this works fine however.
Thinking it might be a bug I tested this in NAV 2016, but this doesn't work either.
This is my code:
CompanyInfo.GET();
CompanyInfo.CALCFIELDS( Picture);
MESSAGE(FORMAT(CompanyInfo.Picture.HASVALUE())); //shows YES
CompanyInfo.Picture.CREATEINSTREAM(MyInStream);
bolOK := MyBigText.READ(MyInStream);
MESSAGE(FORMAT(bolOK)); //shows YES
MESSAGE(FORMAT(MyBigText.LENGTH)); //Shows 4
The company information contains a picture (size is about 200KB), so the length of my bigtext should not be 4, which is what the message shows.
Any ideas? This is also how Microsoft explains it on the site (https://msdn.microsoft.com/nl-be/library/dd355163(v=nav.90).aspx)
Kind regards,
Andy Caignie
I need to copy the contents of a blob field into a bigtext. For this purpose I use an instream variable, but this doesn't seem to work in RTC.
In classic client this works fine however.
Thinking it might be a bug I tested this in NAV 2016, but this doesn't work either.
This is my code:
CompanyInfo.GET();
CompanyInfo.CALCFIELDS( Picture);
MESSAGE(FORMAT(CompanyInfo.Picture.HASVALUE())); //shows YES
CompanyInfo.Picture.CREATEINSTREAM(MyInStream);
bolOK := MyBigText.READ(MyInStream);
MESSAGE(FORMAT(bolOK)); //shows YES
MESSAGE(FORMAT(MyBigText.LENGTH)); //Shows 4
The company information contains a picture (size is about 200KB), so the length of my bigtext should not be 4, which is what the message shows.
Any ideas? This is also how Microsoft explains it on the site (https://msdn.microsoft.com/nl-be/library/dd355163(v=nav.90).aspx)
Kind regards,
Andy Caignie
0
Best Answer
-
5
Answers
-
5
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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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
