Problems displaying pictures from Navision in .NET.

svavarsvavar Member Posts: 2
Hello,

I am new to Navision and I have been asked to write a .NET solution that reads item data from the Navision Database (SQL Server 2000) and displays it on the web.

This is going well except that I cannot get the pictures to display properly.

I have added a BMP to an item but when I retieve it from the database and display it in the browser it is not a valid image.

I should note that the Picture field is an 'image', not a BLOB. Could this be causing my problems? The pictures display fine in Navision.

In my frustration I created a .NET upload form and manually added a BMP to the database. Navision refuses to display it, instead returning an error about a BLOB field with bad data (the actual error message is in Icelandic).

Any ideas?

Thanks!

Comments

  • ara3nara3n Member Posts: 9,257
    hello svavar
    My guess is that Navision compresses the bitmap before storing it in the record. They probably using zip compression. There is no documentation on this :(.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.