<?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: binary files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240127#M27715</link>
    <description>I use this routine to put binary images into a MYSql database
&lt;BR /&gt;package routines;
&lt;BR /&gt;import java.io.FileInputStream;
&lt;BR /&gt;import java.io.File;
&lt;BR /&gt;import java.io.FileNotFoundException;
&lt;BR /&gt;public class ImageUtil {
&lt;BR /&gt; public static byte[] getByte(String filepath) {
&lt;BR /&gt; byte[] b=null;
&lt;BR /&gt; 
&lt;BR /&gt; try {
&lt;BR /&gt; FileInputStream fis = new FileInputStream(filepath);
&lt;BR /&gt; b=new byte;
&lt;BR /&gt; fis.read(b);
&lt;BR /&gt; } catch (Exception e) {
&lt;BR /&gt; e.printStackTrace();
&lt;BR /&gt; }
&lt;BR /&gt; return b;
&lt;BR /&gt; }
&lt;BR /&gt;}
&lt;BR /&gt;In a tMap I then call it on the output using ImageUtil.getByte(file_path) where file _path is the full file path to your file. The output column is a byte array byte[]</description>
    <pubDate>Thu, 01 Sep 2011 17:05:35 GMT</pubDate>
    <dc:creator>janhess</dc:creator>
    <dc:date>2011-09-01T17:05:35Z</dc:date>
    <item>
      <title>binary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240122#M27710</link>
      <description>I want to use a binary file as an input and then load in a postgreSQL database. The binary file has the following format when converted to ASCII&lt;BR /&gt;Name    Marc&lt;BR /&gt;ID         00000000&lt;BR /&gt;Age       30&lt;BR /&gt;The type and size in bytes of each field are already specified.&lt;BR /&gt;what type of file in the metadata section in the repository do I need to use to specify the schema of the binary file &lt;BR /&gt;Thank you for your help</description>
      <pubDate>Sat, 16 Nov 2024 14:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240122#M27710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: binary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240123#M27711</link>
      <description>Hello
&lt;BR /&gt;See 3403
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 08 Jul 2008 04:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240123#M27711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-08T04:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: binary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240124#M27712</link>
      <description>the link is dead, where was pointing.
&lt;BR /&gt;I need to migrate binary files (pdfs, txt,...) into a Postgres Database (bytea). How does this work, is it even possible?</description>
      <pubDate>Tue, 14 Jun 2011 15:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240124#M27712</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-06-14T15:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: binary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240125#M27713</link>
      <description>I've the same question. Has someone an idea?&lt;BR /&gt;Ragrds,&lt;BR /&gt;Billy</description>
      <pubDate>Thu, 01 Sep 2011 13:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240125#M27713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-01T13:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: binary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240126#M27714</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I've the same question. Has someone an idea?&lt;BR /&gt;Ragrds,&lt;BR /&gt;Billy&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Billy 
&lt;BR /&gt;This post is a little old, can you describe your request with more details? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 01 Sep 2011 15:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240126#M27714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-01T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: binary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240127#M27715</link>
      <description>I use this routine to put binary images into a MYSql database
&lt;BR /&gt;package routines;
&lt;BR /&gt;import java.io.FileInputStream;
&lt;BR /&gt;import java.io.File;
&lt;BR /&gt;import java.io.FileNotFoundException;
&lt;BR /&gt;public class ImageUtil {
&lt;BR /&gt; public static byte[] getByte(String filepath) {
&lt;BR /&gt; byte[] b=null;
&lt;BR /&gt; 
&lt;BR /&gt; try {
&lt;BR /&gt; FileInputStream fis = new FileInputStream(filepath);
&lt;BR /&gt; b=new byte;
&lt;BR /&gt; fis.read(b);
&lt;BR /&gt; } catch (Exception e) {
&lt;BR /&gt; e.printStackTrace();
&lt;BR /&gt; }
&lt;BR /&gt; return b;
&lt;BR /&gt; }
&lt;BR /&gt;}
&lt;BR /&gt;In a tMap I then call it on the output using ImageUtil.getByte(file_path) where file _path is the full file path to your file. The output column is a byte array byte[]</description>
      <pubDate>Thu, 01 Sep 2011 17:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240127#M27715</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-09-01T17:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: binary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240128#M27716</link>
      <description>Hi 
&lt;BR /&gt;If the data is the file path of binary file, janhess's solution is good. 
&lt;BR /&gt;If you are migrate binary file from database to another database, set the type as byte[], db type as Blob or Clob on the schema of input/output db component. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 02 Sep 2011 05:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/binary-files/m-p/2240128#M27716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-02T05:23:07Z</dc:date>
    </item>
  </channel>
</rss>

