Create a table to contain the image as a varbinary or image
CREATE TABLE ImageAsVarBinary ( ID int IDENTITY(1,1), ImageName varChar(50), varBinaryData varBinary(MAX) );
Load an image file to the table
INSERT INTO ImageAsVarBinary (ImageName, varBinaryData) SELECT 'image1', BulkColumn FROM OPENROWSET (Bulk 'C:\Test.jpg', SINGLE_BLOB) AS varBinaryData;
Load the image to QVW by using an info load
INFO SQL SELECT ImageName, varBinaryData FROM "DB_TABLE_NAME".dbo.ImageAsVarBinary;
Show the image in an object by setting the field value to
=INFO(ImageName)
Set the field/object Representation to Image
NOTE:
The syntax and SQL example above are based on Microsoft SQL Server 2008, but the principle should be the same on most SQL based database servers.