<?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 Displaying SQL Image Fields in Table (Only Partial Image Visible) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Displaying-SQL-Image-Fields-in-Table-Only-Partial-Image-Visible/m-p/2527589#M107410</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am working with a SQL table that contains fields with the image data type. I convert the field to Base64 and display it in a Qlik table. However, most of the images are not shown completely – only a cropped or partial version of the image appears in the table.&lt;/P&gt;&lt;P&gt;Is there a way to properly render the full image from a SQL image field in Qlik so that the entire picture is visible in the table cell? Adding sample screenshots and the code snippet for the xml casting:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[IMAGE]:
LOAD 
	IMAGE_NAME, 
    IDENTY_ID,
    IMAGE_DATA,
    text(ImageBase64) as ImageBase64
    ;

select
IMAGE_NAME,
IDENTY_ID,
IMAGE_DATA,
'data&amp;amp;colon;image/jpg;base64,' + 
    CAST(
        CAST('' AS XML).value(
            'xs:base64Binary(sql:column("IMAGE_DATA_CASTED"))', 
            'VARCHAR(MAX)'
        ) 
    AS VARCHAR(MAX)) AS ImageBase64
FROM (
SELECT 
	"RESIM_ADI" AS IMAGE_NAME,
    IDENTY_ID,
    IMAGE_DATA,
    CAST(RESIM_DATA AS VARBINARY(MAX)) AS IMAGE_DATA_CASTED
FROM NEWBILMEDICAL.dbo."HASTA_RESIM"
// where IDENTY_ID in ('476544','477240')
) AS X;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Any advice or example would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 18 Aug 2025 13:00:52 GMT</pubDate>
    <dc:creator>fatiharslan</dc:creator>
    <dc:date>2025-08-18T13:00:52Z</dc:date>
    <item>
      <title>Displaying SQL Image Fields in Table (Only Partial Image Visible)</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-SQL-Image-Fields-in-Table-Only-Partial-Image-Visible/m-p/2527589#M107410</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am working with a SQL table that contains fields with the image data type. I convert the field to Base64 and display it in a Qlik table. However, most of the images are not shown completely – only a cropped or partial version of the image appears in the table.&lt;/P&gt;&lt;P&gt;Is there a way to properly render the full image from a SQL image field in Qlik so that the entire picture is visible in the table cell? Adding sample screenshots and the code snippet for the xml casting:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[IMAGE]:
LOAD 
	IMAGE_NAME, 
    IDENTY_ID,
    IMAGE_DATA,
    text(ImageBase64) as ImageBase64
    ;

select
IMAGE_NAME,
IDENTY_ID,
IMAGE_DATA,
'data&amp;amp;colon;image/jpg;base64,' + 
    CAST(
        CAST('' AS XML).value(
            'xs:base64Binary(sql:column("IMAGE_DATA_CASTED"))', 
            'VARCHAR(MAX)'
        ) 
    AS VARCHAR(MAX)) AS ImageBase64
FROM (
SELECT 
	"RESIM_ADI" AS IMAGE_NAME,
    IDENTY_ID,
    IMAGE_DATA,
    CAST(RESIM_DATA AS VARBINARY(MAX)) AS IMAGE_DATA_CASTED
FROM NEWBILMEDICAL.dbo."HASTA_RESIM"
// where IDENTY_ID in ('476544','477240')
) AS X;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Any advice or example would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 13:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-SQL-Image-Fields-in-Table-Only-Partial-Image-Visible/m-p/2527589#M107410</guid>
      <dc:creator>fatiharslan</dc:creator>
      <dc:date>2025-08-18T13:00:52Z</dc:date>
    </item>
  </channel>
</rss>

