Read the size of a BLOB record

Ploeg
Member Posts: 70
Hi,
I'm pretty new to NAV, so I stumbled over the following issue:
I've imported (using NAV) a few images in a database in BLOB records. The next thing I want to do is read the size of the image in a record, with the size of the BLOB I then can mark an image if it is usable on reports.
This is what I've got so far (an example):
Image on C:\Image1.BMP (12 Kb) --> import in BLOB using NAV Classic
This is what I want:
Read size of BLOB record using NAV Classic --> Mark the record usable according to size (< 32Kb)
Hope you guys can help.
Kind regards,
Martijn
I'm pretty new to NAV, so I stumbled over the following issue:
I've imported (using NAV) a few images in a database in BLOB records. The next thing I want to do is read the size of the image in a record, with the size of the BLOB I then can mark an image if it is usable on reports.
This is what I've got so far (an example):
Image on C:\Image1.BMP (12 Kb) --> import in BLOB using NAV Classic
This is what I want:
Read size of BLOB record using NAV Classic --> Mark the record usable according to size (< 32Kb)
Hope you guys can help.
Kind regards,
Martijn
0
Answers
-
I think what you want to do isn't really needed. The 32 KB limit is only for external images, if you use a path in an image control. If you use a blob and a picture box on the report ( also works on forms ), you can use bigger BMP's ( as i just tried out with an almost 1 MB BMP file ).
IF you still want to get the size, the only way i can see is to export them and then get the size of the file. As far as i can see there is no way of telling the size of the contents of the blob directly.0 -
Ah, that sounds great. Stupid that I didn't try it first!
I saw that "they" read the BLOB size of a record in one of my add-ons, but I don't have rights to view or design the object that does the trick.
Ah well, if there are no realistic limitations in size for the BLOBs then my problem is solved.
Thanks for the quick reply!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