Image in SQL Database
Soumyadip
Member Posts: 209
Hi,
Scenario:
I am running NAV 4.0 SP3 with SQL server DB. I have a .NET application that access the same SQL server DB and Read/Write data in to a Custom Developed Table (ID: 50000).
Problem:
When i am storing an image file (BMP) in the database via .NET application, i can read it via .NET application but not via NAV.
Can any one help me out with this prob???
Thanks in advance.
Scenario:
I am running NAV 4.0 SP3 with SQL server DB. I have a .NET application that access the same SQL server DB and Read/Write data in to a Custom Developed Table (ID: 50000).
Problem:
When i am storing an image file (BMP) in the database via .NET application, i can read it via .NET application but not via NAV.
Can any one help me out with this prob???
Thanks in advance.
0
Comments
-
if you are able to import the image from .NET into a Blob field in Navision then i dont see why shouldn't you be able to see it in Navision.
Or else you can create a form with an import button
and write the follwing code this will work for sure:
PictureExists := Picture.HASVALUE;
IF Picture.IMPORT('*.BMP',TRUE) = '' THEN
EXIT;
IF PictureExists THEN
IF NOT CONFIRM(Text001,FALSE,TABLECAPTION,"No.") THEN
EXIT;
CurrForm.SAVERECORD;Regards,
GD0 -
Do not forget to disable the "Compressed" property on the BLOB, else Nav will assume that the data in the blob are compressed and will not understand the plain data.0
-
Please be very carefull with storing BLOB's in a SQL database.
Even though it is not calculated by default. The SELECT statement in NAV does a DATALENGHT query which can result in slow performance.0
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

