<?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: convertir PDF en base64 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271604#M49136</link>
    <description>Not sure the problem comes from this piece of Java code. To be sure of what's wrong, click on the Code tab, then click on the red cross in the right margin. You will be redirected on the source line where the error is located. Move the mouse pointer over the symbol representing the compilation error to discover the full error message.</description>
    <pubDate>Tue, 23 Oct 2018 21:07:55 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-10-23T21:07:55Z</dc:date>
    <item>
      <title>convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271599#M49131</link>
      <description>&lt;DIV class="lia-spoiler-container"&gt; 
 &lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt; 
 &lt;NOSCRIPT&gt;
   (Highlight to read) 
 &lt;/NOSCRIPT&gt; 
 &lt;DIV class="lia-spoiler-border"&gt; 
  &lt;DIV class="lia-spoiler-content"&gt;
    Bonjour, 
   &lt;BR /&gt;Je souhaite pouvoir classer des PDF issus d'un scanner, dans des répertoires spécifiques d'après un mot clé. A priori, il me faut d'abord convertir le pdf en base64. 
   &lt;BR /&gt;Auriez-vous une solution à m'apporter ? 
   &lt;BR /&gt;Merci 
   &lt;BR /&gt;--------------------- I am not very good in English but I try it-------------------- 
   &lt;BR /&gt;Hello, 
   &lt;BR /&gt;I wish&amp;nbsp;dispatch PDF's files from my scanner, in specific directories. It would seems, I&amp;nbsp;have to&amp;nbsp;convert the pdf's file to base64. 
   &lt;BR /&gt;Would you have a solution to bring me ? 
   &lt;BR /&gt;Thanks 
  &lt;/DIV&gt; 
  &lt;NOSCRIPT&gt; 
   &lt;DIV class="lia-spoiler-noscript-container"&gt; 
    &lt;DIV class="lia-spoiler-noscript-content"&gt;
      Bonjour,Je souhaite pouvoir classer des PDF issus d'un scanner, dans des répertoires spécifiques d'après un mot clé. A priori, il me faut d'abord convertir le pdf en base64.Auriez-vous une solution à m'apporter ?Merci--------------------- I am not very good in English but I try it--------------------Hello,I wish&amp;nbsp;dispatch PDF's files from my scanner, in specific directories. It would seems, I&amp;nbsp;have to&amp;nbsp;convert the pdf's file to base64.Would you have a solution to bring me ?Thanks 
    &lt;/DIV&gt; 
   &lt;/DIV&gt; 
  &lt;/NOSCRIPT&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt;</description>
      <pubDate>Sat, 20 Oct 2018 23:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271599#M49131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-20T23:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271600#M49132</link>
      <description>Here a post I replied with an other pseudo 
&lt;A href="https://community.talend.com/t5/Design-and-Development/resolved-Upload-Attachment-into-Salesforce/m-p/64490" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Upload-Attachment-into-Salesforce/m-p/64490&lt;/A&gt;
&lt;BR /&gt;The purpose was to convert documents to Base64 before to upload them into Salesforce. Anyway, you get the piece of code you need for your use case.
&lt;BR /&gt;I don't know why you have to convert files, maybe you could explain this point.
&lt;BR /&gt;Try to continue in english, it's better for sharing reason.
&lt;BR /&gt;If it's not possible, send me a PM in french.</description>
      <pubDate>Sun, 21 Oct 2018 07:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271600#M49132</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-21T07:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271601#M49133</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt; 
&lt;P&gt;thank's for your answer.&lt;/P&gt; 
&lt;P&gt;Maybe it's not necessary to convert files to base64. In fact, i just want recup pdf's files from my scanner and dispath them in proper repertories.&lt;BR /&gt;Tehe base64 conversion was for use Elasticsearch which associated with Kibana allowed to read the pdf and thus to detect a key word.&lt;BR /&gt;I'm open to any solution...&lt;/P&gt;</description>
      <pubDate>Sun, 21 Oct 2018 21:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271601#M49133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-21T21:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271602#M49134</link>
      <description>So you have a method to convert your files to Base64 with my previous answer.&lt;BR /&gt;It the result is as expected, don't forget to give your feedback and to mark your case as solved.</description>
      <pubDate>Sun, 21 Oct 2018 21:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271602#M49134</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-21T21:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271603#M49135</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I haven't seen your answer,&amp;nbsp;I start on the Forum &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;I followed your explanations, but I have this error :&amp;nbsp;&lt;STRONG&gt;Syntax error, insert "Dimensions" to complete Expression&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think it's due to a bad format but I dont find where ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Bellow, the impacted code :&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;row3.Parent_ID = row2.Parent_ID; // Related object's Id&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;row3.Name = row2.Name; // The document's name such as xxxxx.docx or yyyyyy.xlsx or anything else &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;row3.ContentType = row2.ContentType; // Object's name such as Account, Task and so on&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;row3.Body = null; // The place to put the conversion result&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;// In this case, I iterate over the input directory using a tFileList&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;File file = new File((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;try { &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;// Read file&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;documentInFile = new FileInputStream(file);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;byte documentData[] = new byte;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;documentInFile.read(documentData);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;// Convert bytes array to Base64 string to fill Body field&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;row3.Body = new String(Base64.encodeBase64(documentData));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;System.out.println("+++ File converted "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH"));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;} catch (FileNotFoundException e) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;row3.conversionCode = "FILE_NOT_FOUND";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;row3.conversionMessage = "File not found "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;System.out.println("*** File not found "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH")+"\n"+e);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;} catch (IOException ioe) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;row3.conversionCode = "CONVERSION_ERROR";&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271603#M49135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T13:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271604#M49136</link>
      <description>Not sure the problem comes from this piece of Java code. To be sure of what's wrong, click on the Code tab, then click on the red cross in the right margin. You will be redirected on the source line where the error is located. Move the mouse pointer over the symbol representing the compilation error to discover the full error message.</description>
      <pubDate>Tue, 23 Oct 2018 21:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271604#M49136</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-23T21:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271605#M49137</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt; 
&lt;P&gt;Here my job with an error message on the Sleep.&lt;/P&gt; 
&lt;P&gt;I don't understand&amp;nbsp;how&amp;nbsp;tSalesForceOutput works ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JobTalend_1.JPG" style="width: 597px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0Xi.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129118i04BF6E761943CF36/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0Xi.jpg" alt="0683p000009M0Xi.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JobTalend_2.png" style="width: 580px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0a3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135917iCC317FBEEF193639/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0a3.png" alt="0683p000009M0a3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Furthermore, here the message after running job :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JobTalend_exec.JPG" style="width: 825px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0bF.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134723i88ABF93C6038E18A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0bF.jpg" alt="0683p000009M0bF.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JobTalend_exec2.JPG" style="width: 981px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0bK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148570i34B521E8C4E0B846/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0bK.jpg" alt="0683p000009M0bK.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 10:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271605#M49137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T10:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271606#M49138</link>
      <description>&lt;P&gt;Not the same subject.&lt;/P&gt;&lt;P&gt;Anyway, the message is clear, you cannot have a main row after a component which doesn't have an input row.&lt;/P&gt;&lt;P&gt;Change the main row after tSleep by an onComponentOk trigger.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 10:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271606#M49138</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-24T10:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271607#M49139</link>
      <description>&lt;P&gt;I can only attach main row after tSleep. I don't know why !!&lt;/P&gt;&lt;P&gt;I think I have to learn English before use Talend successfully &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 12:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271607#M49139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T12:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271608#M49140</link>
      <description>&lt;P&gt;Because the component (tJavaRow) requires an input row.&lt;/P&gt;&lt;P&gt;So you have to change for a tJava (I assume&amp;nbsp;you don't have anything you expect from a row in the actual tJavaRow component).&lt;/P&gt;&lt;P&gt;If you are not sure of how to write what you expect, you can write your message in english + french (I'm french), but english is better on this forum (elsewhere this is an other question).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 12:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271608#M49140</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-24T12:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271609#M49141</link>
      <description>&lt;P&gt;Good evening&lt;BR /&gt;I replaced the tJavaRow with a tJava, copied in the tJava the code you had given previously but unfortunately, the only possible link between the tJava and the tFilterRow remains the Main row&lt;/P&gt; 
&lt;P&gt;As a reminder, the purpose of all this, allow me to read PDF (or JPG) from a scanner and be able to sort into specific folders based on a keyword that would be detected in the text.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;-------------------------------------------------------------------------------------------------------------&lt;/P&gt; 
&lt;P&gt;Bonsoir&lt;BR /&gt;J'ai remplacé le tJavaRow par un tJava, recopié dans le tJava le code que vous aviez donné précédemment mais malheureusement, le seul lien possible entre le tJava et le tFilterRow reste le Main row.&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Je rappelle le but de tout ceci, me permettre de lire des PDF (ou des JPG) issus en masse d'un scanner et pouvoir les trier dans des dossiers spécifiques en fonction d'un mot clé&amp;nbsp;qui serait détecté dans le texte.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 20:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271609#M49141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T20:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: convertir PDF en base64</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271610#M49142</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i am trying to&amp;nbsp;Insert PDF Attachments into Salesforce.com, and i follow your process, i have this error in the your java code :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;in :&amp;nbsp; documentInFile = new FileInputStream(file);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&amp;gt; documentInFile cannot be resolved to a variable&lt;/P&gt; 
&lt;P&gt;and :&amp;nbsp;byte documentData[] = new byte;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt; Syntax error, insert "Dimensions" to complete Expression&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 13:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convertir-PDF-en-base64/m-p/2271610#M49142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T13:58:17Z</dc:date>
    </item>
  </channel>
</rss>

