<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Loading image from a database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548535#M204908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea. You say &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;... but I can't see anything&lt;/EM&gt;&lt;/SPAN&gt;. Where are you looking? What do you expect to see? If the images are loaded you should be able to find them in the expression editor on the Images tab after choosing the table name as Image Folder. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 13:40:28 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-10-31T13:40:28Z</dc:date>
    <item>
      <title>Loading image from a database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548532#M204905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some pictures in my SQL Server database, in the column FileContent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to link and/or load these pictures into QC 11 using info, bundle,... but I can't see anything.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DB Picture.JPG.jpg" class="jive-image" src="/legacyfs/online/48344_DB Picture.JPG.jpg" style="width: 620px; height: 305px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I do wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my attempts:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(reference table):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT e.[IndividualId] as [ID Employé]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,e.[EmployeeNumber] as [Numéro Employé]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,i.LastName as [Nom Employé]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,i.FirstName as [Prénom Employé]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,i.Sex as [Sexe]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,i.BirthDateUTC as [Date naissance Employé]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,e.[SeniorityDateUTC] as [Date ancienneté Employé]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,i.[Photo_FileId] as [Photo_Id]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; FROM [CLIBDL].[Individual].[Employees] e &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; INNER JOIN [CLIBDL].[Individual].[Individuals] i on e.IndividualId = i.IndividualId where e.IndividualId not in (1,2); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;bundle&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT [FileId] as [Photo_Id]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[FileName] as [Photo_File_Name]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[FileContent] as [Photo]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; FROM [CLIBDL].[Exploitation].[Files]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; where VirtualPath =&amp;nbsp; 'TalentSoft/Photos'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;2) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Bundle &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Info&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Image_Size&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(256,256)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT [FileId] as [Photo_Id]&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[FileName] as [Photo_File_Name] */&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[FileContent] as [Photo]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; FROM [CLIBDL].[Exploitation].[Files]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; where VirtualPath =&amp;nbsp; 'TalentSoft/Photos';&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;3) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;Info&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT [FileId] as [Photo_Id]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[FileContent] as [Photo]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; FROM [CLIBDL].[Exploitation].[Files]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; where VirtualPath =&amp;nbsp; 'TalentSoft/Photos';&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 09:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548532#M204905</guid>
      <dc:creator />
      <dc:date>2013-10-30T09:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading image from a database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548533#M204906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you retrieve images from a database then you need to use INFO. And you must load only two fields. The first contains the image key (or name), the other field contains the binary data of the image. From the help file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 24px; font-weight: bold; line-height: 1.5em;"&gt;Info&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If a piece of external information, such as a text file, a picture or a video is to be linked to a field value, this is done in a table that is loaded using an &lt;SPAN class="Bold"&gt;info&lt;/SPAN&gt; prefix. (In some cases it will be preferable to store the information inside the .qvw file, by using the &lt;A class="MCXref_0"&gt;&lt;EM&gt;Bundle&lt;/EM&gt;&lt;/A&gt; prefix.) &lt;SPAN style="color: #ff0000;"&gt;The table must contain two columns only&lt;/SPAN&gt;, the first one with the field values that will form the keys to the information, the second one containing the information elements, e.g. the file names of the pictures etcetera.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;The same applies to, for example, a picture from a database management system. On a binary field, a blob, the info select statement makes an implicit &lt;SPAN class="Bold"&gt;bundle&lt;/SPAN&gt;, i.e. the binary data will be fetched immediately and stored in the qvw. &lt;SPAN style="color: #ff0000;"&gt;The binary data must be the second field in a &lt;SPAN class="Bold"&gt;select&lt;/SPAN&gt; statement&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is:&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;info &lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;( loadstatement | selectstatement )&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Examples:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code"&gt;Info LOAD * FROM flagoecd.csv;&lt;/P&gt;&lt;P class="Code"&gt;Info SQL SELECT * FROM infotable;&lt;/P&gt;&lt;P class="Code"&gt;Info SQL SELECT Key, Picture FROM infotable;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 16:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548533#M204906</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-30T16:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Loading image from a database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548534#M204907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's what I've tried, with SELECT as it is in a database (see my 3rd example) =&amp;gt; do you have any idea what I did wrong? I have the info, 2 fields only and the second one is my binary field...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548534#M204907</guid>
      <dc:creator />
      <dc:date>2013-10-31T13:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loading image from a database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548535#M204908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea. You say &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;... but I can't see anything&lt;/EM&gt;&lt;/SPAN&gt;. Where are you looking? What do you expect to see? If the images are loaded you should be able to find them in the expression editor on the Images tab after choosing the table name as Image Folder. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548535#M204908</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-31T13:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loading image from a database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548536#M204909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think my images aren't loaded. I've tried to use them in a expression, with example found on this forum, but I only have the standard blue background color, and no image &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 13:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-image-from-a-database/m-p/548536#M204909</guid>
      <dc:creator />
      <dc:date>2013-11-08T13:25:24Z</dc:date>
    </item>
  </channel>
</rss>

