<?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: Conversion binary-&amp;gt;text to a PDF file with Talend Open Studio Data Integration in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Conversion-binary-gt-text-to-a-PDF-file-with-Talend-Open-Studio/m-p/2236404#M25126</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your answer. I read that.&lt;/P&gt;&lt;P&gt;Bastien&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 07:25:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-28T07:25:03Z</dc:date>
    <item>
      <title>Conversion binary-&gt;text to a PDF file with Talend Open Studio Data Integration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion-binary-gt-text-to-a-PDF-file-with-Talend-Open-Studio/m-p/2236402#M25124</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I’m new in Talend and I have an issue. I want to extract a PDF file of a postgresql server (Blob column) and transform the binary file in a text file with Talend Open Studio to read the contain of the PDF file.&lt;/P&gt; 
&lt;P&gt;I will explain my way now :&lt;/P&gt; 
&lt;P&gt;This is my postgresql table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Table name : attached_file&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;id;name;mime_type;data&lt;/P&gt; 
&lt;P&gt;1;TEST_report_1.html;text/html;&amp;lt;binary data&amp;gt;&lt;/P&gt; 
&lt;P&gt;2;pdffile1.pdf;application;&amp;lt;binary data&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I extracted the file with the SQL request :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;COPY (SELECT data FROM attached_file WHERE id = 2) TO ‘D:/_users/BMI/testpdf.txt’ (FORMAT binary);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I heard that to open the binary file, I must use a tFileInputRaw composant with the “Read the file as a bytes array” mode. However, I’m blocked for the output to create the final file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Bastien&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 16:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion-binary-gt-text-to-a-PDF-file-with-Talend-Open-Studio/m-p/2236402#M25124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T16:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion binary-&gt;text to a PDF file with Talend Open Studio Data Integration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion-binary-gt-text-to-a-PDF-file-with-Talend-Open-Studio/m-p/2236403#M25125</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;You need to go with a tJavaXxxx component for this purpose (I think so).&lt;/P&gt; 
&lt;P&gt;Search for "java convert binary to pdf" with Google, it will give you some examples:&lt;/P&gt; 
&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/1131116/pdf-to-byte-array-and-vice-versa" target="_self" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/1131116/pdf-to-byte-array-and-vice-versa&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="http://myjavaprogramming.blogspot.fr/2011/09/convert-byte-array-to-pdf-in-java.html" target="_self" rel="nofollow noopener noreferrer"&gt;http://myjavaprogramming.blogspot.fr/2011/09/convert-byte-array-to-pdf-in-java.html&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 17:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion-binary-gt-text-to-a-PDF-file-with-Talend-Open-Studio/m-p/2236403#M25125</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-04-27T17:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion binary-&gt;text to a PDF file with Talend Open Studio Data Integration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion-binary-gt-text-to-a-PDF-file-with-Talend-Open-Studio/m-p/2236404#M25126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your answer. I read that.&lt;/P&gt;&lt;P&gt;Bastien&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 07:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion-binary-gt-text-to-a-PDF-file-with-Talend-Open-Studio/m-p/2236404#M25126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T07:25:03Z</dc:date>
    </item>
  </channel>
</rss>

