Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load an image file from SQL Server DB

hi all,

I have some images stored in an SQL Server Database, now i want to load that data into QlikView. i am using version 8.5. All the files are in binary format. please tell me how can i load image files from SQL database.

regards,

Afzal

4 Replies
manishkumar75
Partner - Creator II
Partner - Creator II

Hi,

I am giving you an Example :-

Suppose my Table structure is

CREATE TABLE IamgeData
(
ImageID int IDENTITY(1,1),
Imagename varChar(50),
Photo varBinary(MAX)
)

To Load the data in QlikView follow the steps:-

1. Create the Data Base Connection

2. LOAD ImageID,
Imagename,
Photo;
SELECT *
FROM QlikDemo.dbo.ImageData;

Hope it will work

- Manish

Not applicable
Author

hi manish..

I have done this but it is not showing image, instead it is showing that binary value.. now please tell what would be the problem??

thanx,

Afzal.

manishkumar75
Partner - Creator II
Partner - Creator II

Hi Afzal ,

Plz refer Page no - 312 of QlikView Reference Manual. (Actually I don't have access to Sql Server to Test the application).

- Manish

Not applicable
Author

Hi

In order to show the image you must tell QlikView to interpret as an image, for example, if you are doing this in a straight table and your image is an expression then you should change the Property "Representation" to Image.

Same sort of property exists in other objects.

Regards,

Nigel.