<?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 Encode64 text to a PDF in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/convert-Encode64-text-to-a-PDF/m-p/2266247#M45539</link>
    <description>Hi, 
&lt;BR /&gt;Just yesterday I created a piece of code for that..&amp;nbsp; 
&lt;BR /&gt;I use a some java inside a job, which just outputs the file in a predefined (via context var) network share: 
&lt;BR /&gt; 
&lt;PRE&gt;/*&lt;BR /&gt;   input_row.docData is the field which holds the base64 encoded pdf.&lt;BR /&gt;   In de advanced tab I have the following imports:&lt;BR /&gt;	import java.io.*;&lt;BR /&gt;	import sun.misc.BASE64Decoder;&lt;BR /&gt;	import sun.misc.BASE64Encoder;&lt;BR /&gt;*/&lt;BR /&gt;BASE64Decoder decoder = new BASE64Decoder();&lt;BR /&gt;byte[] decodedBytes = decoder.decodeBuffer(input_row.docData);&lt;BR /&gt;if (decodedBytes!=null) &lt;BR /&gt;{&lt;BR /&gt;	File file = new File(new_filename);;&lt;BR /&gt;	file.getParentFile().mkdirs();&lt;BR /&gt;	FileOutputStream fop = new FileOutputStream(file);&lt;BR /&gt;	fop.write(decodedBytes);&lt;BR /&gt;	fop.flush();&lt;BR /&gt;	fop.close();&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;Hope this does the job for you. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Dennis</description>
    <pubDate>Wed, 21 Dec 2016 09:04:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-21T09:04:43Z</dc:date>
    <item>
      <title>convert Encode64 text to a PDF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-Encode64-text-to-a-PDF/m-p/2266246#M45538</link>
      <description>Hello,
&lt;BR /&gt;Is there a way to convert Encode64 text to a PDF file?
&lt;BR /&gt;Thank you very much.</description>
      <pubDate>Wed, 21 Dec 2016 08:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-Encode64-text-to-a-PDF/m-p/2266246#M45538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T08:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: convert Encode64 text to a PDF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-Encode64-text-to-a-PDF/m-p/2266247#M45539</link>
      <description>Hi, 
&lt;BR /&gt;Just yesterday I created a piece of code for that..&amp;nbsp; 
&lt;BR /&gt;I use a some java inside a job, which just outputs the file in a predefined (via context var) network share: 
&lt;BR /&gt; 
&lt;PRE&gt;/*&lt;BR /&gt;   input_row.docData is the field which holds the base64 encoded pdf.&lt;BR /&gt;   In de advanced tab I have the following imports:&lt;BR /&gt;	import java.io.*;&lt;BR /&gt;	import sun.misc.BASE64Decoder;&lt;BR /&gt;	import sun.misc.BASE64Encoder;&lt;BR /&gt;*/&lt;BR /&gt;BASE64Decoder decoder = new BASE64Decoder();&lt;BR /&gt;byte[] decodedBytes = decoder.decodeBuffer(input_row.docData);&lt;BR /&gt;if (decodedBytes!=null) &lt;BR /&gt;{&lt;BR /&gt;	File file = new File(new_filename);;&lt;BR /&gt;	file.getParentFile().mkdirs();&lt;BR /&gt;	FileOutputStream fop = new FileOutputStream(file);&lt;BR /&gt;	fop.write(decodedBytes);&lt;BR /&gt;	fop.flush();&lt;BR /&gt;	fop.close();&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;Hope this does the job for you. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Dennis</description>
      <pubDate>Wed, 21 Dec 2016 09:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-Encode64-text-to-a-PDF/m-p/2266247#M45539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T09:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: convert Encode64 text to a PDF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-Encode64-text-to-a-PDF/m-p/2266248#M45540</link>
      <description>Thank you very much for your answer.&lt;BR /&gt;Can you attach me a picture of Talend? Do I need to have any external software installed?&lt;BR /&gt;Greetings.</description>
      <pubDate>Wed, 21 Dec 2016 09:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-Encode64-text-to-a-PDF/m-p/2266248#M45540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T09:21:12Z</dc:date>
    </item>
  </channel>
</rss>

