<?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 Talend - Binary object in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Binary-object/m-p/2302448#M74433</link>
    <description>Hello,&lt;BR /&gt;Does talend allow ETL operations on binary objects like sql-server varbinay, oracle - BLOB or we need to provide some workarounds?&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 28 May 2012 08:16:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-28T08:16:40Z</dc:date>
    <item>
      <title>Talend - Binary object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Binary-object/m-p/2302448#M74433</link>
      <description>Hello,&lt;BR /&gt;Does talend allow ETL operations on binary objects like sql-server varbinay, oracle - BLOB or we need to provide some workarounds?&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 28 May 2012 08:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Binary-object/m-p/2302448#M74433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-28T08:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Talend - Binary object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Binary-object/m-p/2302449#M74434</link>
      <description>Hi 
&lt;BR /&gt;Step1: 
&lt;BR /&gt;Let's create a user routine called 'MyRoutineDemo'. It has a ByteArrayFromFile function, that is used to read a file and convert it to a byte array. As seen below: 
&lt;BR /&gt;package routines; 
&lt;BR /&gt; 
&lt;BR /&gt;public class MyRoutineDemo { 
&lt;BR /&gt; 
&lt;BR /&gt;public static byte[] ByteArrayFromFile(String filepath) { 
&lt;BR /&gt; try 
&lt;BR /&gt; { java.io.File file=new java.io.File(filepath); 
&lt;BR /&gt; java.io.FileInputStream fis = new java.io.FileInputStream(file); 
&lt;BR /&gt; int fileLength = (int) file.length(); 
&lt;BR /&gt; byte[] incoming_file_data = new byte; // allocate byte array of right size 
&lt;BR /&gt; fis.read(incoming_file_data, 0, fileLength ); // read into byte array 
&lt;BR /&gt; fis.close(); 
&lt;BR /&gt; return incoming_file_data; 
&lt;BR /&gt; } 
&lt;BR /&gt; catch(Exception err) 
&lt;BR /&gt; { 
&lt;BR /&gt; err.printStackTrace(); 
&lt;BR /&gt; return null; 
&lt;BR /&gt; } 
&lt;BR /&gt;} 
&lt;BR /&gt;} 
&lt;BR /&gt;Step2: 
&lt;BR /&gt;Create a job to iterate each picture in the "D:/image/" folder and insert them into the 'blobdemo' table. The job design is detailed in the pictures below. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 28 May 2012 08:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Binary-object/m-p/2302449#M74434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-28T08:30:56Z</dc:date>
    </item>
  </channel>
</rss>

