Bigtext problem

lubost
Member Posts: 633
Hi guys,
there is a step by step description of my problem:
1. I have a picture file (JPG)
2. I have written a small program for conversion (Base64) -> file is converted
3. If I want to stream converted file into Bigtext variable I obtained error message "Overall number of characters in text can not exceeds ..."
My code
Image - Bigtext
Item - Record - 27
InS - Instream
Item.CALCFIELDS(Picture);
IF Item.Picture.HASVALUE then BEGIN
Item.Picture.CREATEINSTREAM(InS);
Image.READ(InS);
END;
What's wrong?
Thank you in advance
there is a step by step description of my problem:
1. I have a picture file (JPG)
2. I have written a small program for conversion (Base64) -> file is converted
3. If I want to stream converted file into Bigtext variable I obtained error message "Overall number of characters in text can not exceeds ..."
My code
Image - Bigtext
Item - Record - 27
InS - Instream
Item.CALCFIELDS(Picture);
IF Item.Picture.HASVALUE then BEGIN
Item.Picture.CREATEINSTREAM(InS);
Image.READ(InS);
END;
What's wrong?
Thank you in advance
0
Comments
-
Not quite sure why you want it in a BigText. BigText is intended for large textual not binary data. You should stream into a BLOB instead, and from there it depends what your ultimate goal is - you could copy to a BLOB field, or another stream such as a file.Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Thank you for your answer.
1. After Base64 conversion picture is in text representation, so it is not in binary format
2. I need to include this converted file to XML
3. Customer hasn't CG installed and CG granule, so can not use Biztalk way to fulfill requirement
Thanks in advance0 -
lubost wrote:I need to include this converted file to XML
1. Copy BLOB into file or stream object.
2. By using cycle, read data into a text variable and use the xmlDomText.appendData method.
3. Append xmlDomText node into the XML document.Looking for part-time work.
Nav, T-SQL.0 -
OK, I'm with you. Does it error on the Image.READ? How big is the BLOB data in the SQL table?Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
You don't need CG to do biztalk integration.
You can do integration using msmq with biztalk.0
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