<?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: Convert an Oracle Blob to MSSQL Varbinary field in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-an-Oracle-Blob-to-MSSQL-Varbinary-field/m-p/2377803#M139614</link>
    <description>&lt;P&gt;I can't test this as I don't have the databases available BUT I suspect that this is connected to the fact that the blob will be returned as an Object. So, the first thing I would try would be to cast the column to a oracle.sql.BLOB and then retrieve the bytes from that. Following that, load the byte array to the SQL Server table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the tMap try this in the output column feeding the Varbinary column....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;((oracle.sql.BLOB)row1.blobcolumn).getBytes()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I said, this is just the first thing I would try. Let me know if it works.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 00:59:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-01-28T00:59:16Z</dc:date>
    <item>
      <title>Convert an Oracle Blob to MSSQL Varbinary field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-an-Oracle-Blob-to-MSSQL-Varbinary-field/m-p/2377802#M139613</link>
      <description>&lt;P&gt;Does anyone have any idea how to move a blob from an oracle database to a varbinary field in a microsoft sql database?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now if I try doing it through tmap I get an error:&amp;nbsp;java.sql.SQLException: Unable to convert between oracle.sql.BLOB and JAVA_OBJECT. 	&lt;/P&gt;&lt;P&gt;at net.sourceforge.jtds.jdbc.Support.convert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In tmap it lists the types for both the blob and varbinary as "object"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't find anything recent (last 5 years) here by searching so I thought I'd post and see if anyone had any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-an-Oracle-Blob-to-MSSQL-Varbinary-field/m-p/2377802#M139613</guid>
      <dc:creator>KPB</dc:creator>
      <dc:date>2024-11-15T23:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert an Oracle Blob to MSSQL Varbinary field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-an-Oracle-Blob-to-MSSQL-Varbinary-field/m-p/2377803#M139614</link>
      <description>&lt;P&gt;I can't test this as I don't have the databases available BUT I suspect that this is connected to the fact that the blob will be returned as an Object. So, the first thing I would try would be to cast the column to a oracle.sql.BLOB and then retrieve the bytes from that. Following that, load the byte array to the SQL Server table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the tMap try this in the output column feeding the Varbinary column....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;((oracle.sql.BLOB)row1.blobcolumn).getBytes()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I said, this is just the first thing I would try. Let me know if it works.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 00:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-an-Oracle-Blob-to-MSSQL-Varbinary-field/m-p/2377803#M139614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-28T00:59:16Z</dc:date>
    </item>
  </channel>
</rss>

