<?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 Best way to handle an Oracle BLOB in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Best-way-to-handle-an-Oracle-BLOB/m-p/2531370#M148024</link>
    <description>&lt;P&gt;I have a setup with an oracle component that makes a call to a database and returns a BLOB datatype. The BLOB only contains textual information (I know a CLOB would work better but this is the way the database is structured) and I want to extract this as a byte array and pass this to a tFileOutputRaw.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current skeleton/prototype:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MDouglas1687874333_1-1758287014000.png" style="width: 352px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183769i6ACCA0E87D58AF1F/image-dimensions/352x150?v=v2" width="352" height="150" role="button" title="MDouglas1687874333_1-1758287014000.png" alt="MDouglas1687874333_1-1758287014000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talend seems to want to treat it as an object, if the notification from the component and the DB TYPE being orange in the schema implies this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="MDouglas1687874333_0-1758286909742.png" style="width: 162px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183768i093D1870ECEA2051/image-dimensions/162x53?v=v2" width="162" height="53" role="button" title="MDouglas1687874333_0-1758286909742.png" alt="MDouglas1687874333_0-1758286909742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This goes away when I set it to an object but it being an oracle.sql.BLOB object type, I am unsure how this should be used. I would want to get the textual value from the blob but I'm not sure how to work with this object. Any advice on this would be appreciated.&lt;BR /&gt;&lt;BR /&gt;NOTE: Using a byte array works perfectly fine for this, but I am curious what, if any, benefit would be gained from using an object instead?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2025 13:06:34 GMT</pubDate>
    <dc:creator>MDouglas1687874333</dc:creator>
    <dc:date>2025-09-19T13:06:34Z</dc:date>
    <item>
      <title>Best way to handle an Oracle BLOB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Best-way-to-handle-an-Oracle-BLOB/m-p/2531370#M148024</link>
      <description>&lt;P&gt;I have a setup with an oracle component that makes a call to a database and returns a BLOB datatype. The BLOB only contains textual information (I know a CLOB would work better but this is the way the database is structured) and I want to extract this as a byte array and pass this to a tFileOutputRaw.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current skeleton/prototype:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MDouglas1687874333_1-1758287014000.png" style="width: 352px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183769i6ACCA0E87D58AF1F/image-dimensions/352x150?v=v2" width="352" height="150" role="button" title="MDouglas1687874333_1-1758287014000.png" alt="MDouglas1687874333_1-1758287014000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talend seems to want to treat it as an object, if the notification from the component and the DB TYPE being orange in the schema implies this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="MDouglas1687874333_0-1758286909742.png" style="width: 162px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183768i093D1870ECEA2051/image-dimensions/162x53?v=v2" width="162" height="53" role="button" title="MDouglas1687874333_0-1758286909742.png" alt="MDouglas1687874333_0-1758286909742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This goes away when I set it to an object but it being an oracle.sql.BLOB object type, I am unsure how this should be used. I would want to get the textual value from the blob but I'm not sure how to work with this object. Any advice on this would be appreciated.&lt;BR /&gt;&lt;BR /&gt;NOTE: Using a byte array works perfectly fine for this, but I am curious what, if any, benefit would be gained from using an object instead?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 13:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Best-way-to-handle-an-Oracle-BLOB/m-p/2531370#M148024</guid>
      <dc:creator>MDouglas1687874333</dc:creator>
      <dc:date>2025-09-19T13:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to handle an Oracle BLOB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Best-way-to-handle-an-Oracle-BLOB/m-p/2537593#M148202</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You’re right to notice that Talend treats Oracle&amp;nbsp;BLOB&amp;nbsp;columns as&amp;nbsp;Java objects&amp;nbsp;(oracle.sql.BLOB) unless you explicitly map them to a&amp;nbsp;byte[]. That orange “DB TYPE” indicator in the schema is Talend’s way of saying&amp;nbsp;&lt;EM&gt;“this doesn’t map cleanly to a primitive type, so we’ll expose it as an Object.”&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;BLOB in Oracle&amp;nbsp;= Binary Large Object. It’s designed for arbitrary binary data (images, PDFs, etc.).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;CLOB&amp;nbsp;= Character Large Object. It’s designed for textual data.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Since your BLOB contains text, you’re essentially storing text in a binary wrapper. That’s why you need to decide how to interpret it.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Handling in Talend&lt;/P&gt;&lt;P&gt;Map to&amp;nbsp;byte[]&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;In the schema, set the column type to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;byte[]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Talend will automatically fetch the BLOB as a byte array.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;You can pass this directly to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;tFileOutputRaw&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(perfect for binary/text dumps).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;If you need to interpret it as text, wrap it in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;new String(byteArray, "UTF-8")&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2025 20:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Best-way-to-handle-an-Oracle-BLOB/m-p/2537593#M148202</guid>
      <dc:creator>gvarun_arthasolutions</dc:creator>
      <dc:date>2025-11-29T20:25:15Z</dc:date>
    </item>
  </channel>
</rss>

