<?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: Null Values in BLOBs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252668#M36246</link>
    <description>Hi Dirk&lt;BR /&gt;Usually for BLOB column, the data type of Talend is byte[].&lt;BR /&gt;Please try with it.&lt;BR /&gt;Wait for your feedback.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
    <pubDate>Thu, 19 Jul 2012 10:38:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-19T10:38:10Z</dc:date>
    <item>
      <title>Null Values in BLOBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252665#M36243</link>
      <description>Hi,
&lt;BR /&gt;my jobs moves BLOB columns from ad Derby DB to a DB2 DB.
&lt;BR /&gt;Source and target column are defined as Object in tMap.
&lt;BR /&gt;If a BLOB value isn the source table is null, java.sql.Type is set to other, which leades to the exception:
&lt;BR /&gt;Exception in component tDB2Output_6
&lt;BR /&gt;com.ibm.db2.jcc.a.SqlException: Jdbc type 1111 not yet supported.
&lt;BR /&gt; at com.ibm.db2.jcc.a.n.a(n.java:1003)
&lt;BR /&gt; at com.ibm.db2.jcc.a.n.a(n.java:892)
&lt;BR /&gt; at com.ibm.db2.jcc.a.n.a(n.java:873)
&lt;BR /&gt; at com.ibm.db2.jcc.a.sf.b(sf.java:568)
&lt;BR /&gt; at com.ibm.db2.jcc.a.sf.setNull(sf.java:558)
&lt;BR /&gt; at 
&lt;BR /&gt;Is there a way to set the java.sql.Type to BLOB or another way to insert the null value into the target column?
&lt;BR /&gt;Regards Dirk</description>
      <pubDate>Wed, 18 Jul 2012 13:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252665#M36243</guid>
      <dc:creator>drosemeyer</dc:creator>
      <dc:date>2012-07-18T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Null Values in BLOBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252666#M36244</link>
      <description>Hi Dirk
&lt;BR /&gt;It seems that you are trying to insert a NULL data in a column that is configured in the data model to NOT NULL.
&lt;BR /&gt;Pleae recheck the schema.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 19 Jul 2012 02:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252666#M36244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-19T02:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Null Values in BLOBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252667#M36245</link>
      <description>Hi Pedro,&lt;BR /&gt;no, the column is not mandatory.&lt;BR /&gt;In this case I would get an Sqlcode -407 from DB2.&lt;BR /&gt;The insert is not execcuted. &lt;BR /&gt;I guess the problem in in code generation:&lt;BR /&gt; &lt;BR /&gt;if (save_binaryfile.C_VALUE == null) {&lt;BR /&gt;	pstmt_tDB2Output_6.setNull(14,&lt;BR /&gt;			java.sql.Types.OTHER);&lt;BR /&gt;} else {&lt;BR /&gt;	pstmt_tDB2Output_6.setObject(14,&lt;BR /&gt;			save_binaryfile.C_VALUE);&lt;BR /&gt;}&lt;BR /&gt;if (save_binaryfile.C_MIMETYPE == null) {&lt;BR /&gt;	pstmt_tDB2Output_6.setNull(15,&lt;BR /&gt;			java.sql.Types.VARCHAR);&lt;BR /&gt;} else {&lt;BR /&gt;	pstmt_tDB2Output_6.setString(15,&lt;BR /&gt;			save_binaryfile.C_MIMETYPE);&lt;BR /&gt;C_VALUE is the BLOB column.&lt;BR /&gt;In case of NULL java.sqlTypes.OTHER is used, which leads to the error.&lt;BR /&gt;For C_MIMETYPE java.sql.Types.VARCHAR is used, what is correct.&lt;BR /&gt;Regards Dirk</description>
      <pubDate>Thu, 19 Jul 2012 10:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252667#M36245</guid>
      <dc:creator>drosemeyer</dc:creator>
      <dc:date>2012-07-19T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Null Values in BLOBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252668#M36246</link>
      <description>Hi Dirk&lt;BR /&gt;Usually for BLOB column, the data type of Talend is byte[].&lt;BR /&gt;Please try with it.&lt;BR /&gt;Wait for your feedback.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 19 Jul 2012 10:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252668#M36246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-19T10:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Null Values in BLOBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252669#M36247</link>
      <description>Hi Pedro,
&lt;BR /&gt;Object is the default type hich is set in tMap from the the schema object in derby and in DB2 as well.
&lt;BR /&gt;I tried byte[] but it did not work. because java.sqlTypes.ARRAY is used.
&lt;BR /&gt; if (save_binaryfile.C_VALUE == null) {
&lt;BR /&gt; pstmt_tDB2Output_6.setNull(14,
&lt;BR /&gt; java.sql.Types.ARRAY);
&lt;BR /&gt;} else {
&lt;BR /&gt; pstmt_tDB2Output_6.setBytes(14,
&lt;BR /&gt; save_binaryfile.C_VALUE);
&lt;BR /&gt;}
&lt;BR /&gt;
&lt;BR /&gt;Exception in component tDB2Output_6
&lt;BR /&gt;com.ibm.db2.jcc.a.SqlException: Jdbc type 2003 not yet supported.
&lt;BR /&gt; at com.ibm.db2.jcc.a.n.a(n.java:1003)
&lt;BR /&gt; at com.ibm.db2.jcc.a.n.a(n.java:892)
&lt;BR /&gt; at com.ibm.db2.jcc.a.n.a(n.java:873)
&lt;BR /&gt; at com.ibm.db2.jcc.a.sf.b(sf.java:568)
&lt;BR /&gt; at com.ibm.db2.jcc.a.sf.setNull(sf.java:558)
&lt;BR /&gt; at 
&lt;BR /&gt;
&lt;BR /&gt;Regards Dirk</description>
      <pubDate>Thu, 19 Jul 2012 12:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252669#M36247</guid>
      <dc:creator>drosemeyer</dc:creator>
      <dc:date>2012-07-19T12:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Null Values in BLOBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252670#M36248</link>
      <description>Hi Dirk
&lt;BR /&gt;Please report it on 
&lt;A href="http://jira.talendforge.org/secure/Dashboard.jspa" target="_blank" rel="nofollow noopener noreferrer"&gt;BugTracker&lt;/A&gt; if byte[] doesn't work.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 20 Jul 2012 03:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Values-in-BLOBs/m-p/2252670#M36248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-20T03:08:23Z</dc:date>
    </item>
  </channel>
</rss>

