Type "Binary" not supported
reijermolenaar
Member Posts: 256
Hi,
When I compile an object I get the following warning:
When I compile an object I get the following warning:
Type "Binary" not supportedI use a variable of type Binary to read one bit from a stream like this:
InStr.READ(Bin1);Does anybody know how I can do this without the use of a binary?
Reijer Molenaar
Object Manager
Object Manager
0
Comments
-
Use Char. You will read 8 bits, you can extract the bits by "div 2" and "mod 2".0
-
Hi Kine,
Thanks, but that will be dramatic for the performance.
I will try to explain what I am doing…
I have a file (a kind of a backup file) with data in it. It also includes the values of blobfields. So when I import this file I have to transfer parts of this instream in different blob fields. (e.g. item.picture)
Now when I want to transfer 1000 bytes from that InStream to an OutStream I do the following:InStr.READ(Bin1000); OutStr.WRITE(Bin1000);
If I have to use a Char to do this like this it will be very slow:FOR i := 1 TO 1000 DO BEGIN InStr.READ(Char1); OutStr.WRITE(Char1); END;
Let me rephrase my question:
What is the fastest way to transfer a variable no. of bytes from one stream to another?
Thanks for your time!Reijer Molenaar
Object Manager0
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
