<?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: Base64 cannot be resolved in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206773#M6692</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKxHAAW"&gt;@abelya&lt;/A&gt;, great!&lt;/P&gt;
&lt;P&gt;However, you should mark the answer that help you, not your own.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 09:57:46 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-09-21T09:57:46Z</dc:date>
    <item>
      <title>Base64 cannot be resolved</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206766#M6685</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I need to download photos from oracle database and write them to jpg files in base64. Downloading and writing to jpg files works fine. Now i'm trying to use&amp;nbsp;java.util.Base64.encodeBase64 but i have two problems.&lt;/P&gt;
&lt;P&gt;Here is the code in tJavaRow component before trying to encode in base64 :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;byte[] bytes = baos.toByteArray());&lt;/P&gt;
&lt;P&gt;output_row.PHOTO = bytes;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;output_row.PHOTO is object type&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now i add the encoding :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;byte[] bytes = baos.toByteArray());&lt;/P&gt;
&lt;P&gt;output_row.PHOTO = Base64.encodeBase64(bytes);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i have changed output_row.PHOTO to string type&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When i try to run the job, the message is "Base64 cannot be resolved"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I i change to "output_row.PHOTO = java.util.Base64.encodeBase64(bytes);" the message is now "the method encodebase64(byte ) is undefined for the type base64"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;First question : is Base64 really recognized by talend and why do i have to add java.util ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Second question : am i wrong trying to use encodebase64 to convert my photo to base64 ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for help&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yannick&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206766#M6685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Base64 cannot be resolved</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206767#M6686</link>
      <description>Talend is an ETL (extract Transform and Load data)&lt;BR /&gt;pics is data it's true!&lt;BR /&gt;Talend is a java generator so you can build your own component in java using tJava tJavaFlex tJavarRow.&lt;BR /&gt;tLibraryLoad allow to load external Jar.&lt;BR /&gt;but your code must be able to be integrated into Talends generated one.&lt;BR /&gt;you can use Base64 to encode your pics.&lt;BR /&gt;you may load java.util if you need it (be careful the last loaded lib is erasing previous one)&lt;BR /&gt;Good luck</description>
      <pubDate>Thu, 20 Sep 2018 11:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206767#M6686</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-20T11:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Base64 cannot be resolved</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206768#M6687</link>
      <description>&lt;P&gt;Bonjour François,&lt;/P&gt;
&lt;P&gt;Vous devez être francophone ? Ce sera plus simple pour moi en français.&lt;/P&gt;
&lt;P&gt;Je peux donc utiliser Base64 pour encoder mes images mais pourquoi cette class n'est elle pas reconnue ? J'utilise Talend Open Studio for Data Integration 6.0.0. Je pense que de base les packages commons-codec sont disponibles jusqu'en version 1.7. J'ai essayé d'ajouter le commons-code 1.11 mais rien n'y fait. Comment ajouter le fichier téléchargé pour que à la fin la classe Base64 soit reconnue dans mon composant tJavaRow ?&lt;/P&gt;
&lt;P&gt;Cordialement&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 08:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206768#M6687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-21T08:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Base64 cannot be resolved</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206769#M6688</link>
      <description>did you try to use tLoadLibrary?&lt;BR /&gt;I think that you have to also add your library on preferences/java/BuildPath/user Libraries.&lt;BR /&gt;&lt;BR /&gt;je suis bien francophone, mais le forum a pour objectif d'etre réutilisable par tous.</description>
      <pubDate>Fri, 21 Sep 2018 08:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206769#M6688</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-21T08:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Base64 cannot be resolved</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206770#M6689</link>
      <description>&lt;P&gt;Did you try to import Base64 in the tJavaRow Advanced Settings?&lt;/P&gt;
&lt;PRE&gt;import org.apache.commons.codec.binary.Base64;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2018 09:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206770#M6689</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-09-21T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Base64 cannot be resolved</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206771#M6690</link>
      <description>Thank you for your help. The problem in my tJavaRow is that i did put the import command in the basic setting with the main code instead of the advanced settings. Now Base64 class is resolved. It's a smal step for humanity but a big one for me. I 've tried tLibraryLoad but it was not necessary. 
&lt;BR /&gt;Yannick</description>
      <pubDate>Fri, 21 Sep 2018 09:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206771#M6690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-21T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Base64 cannot be resolved</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206772#M6691</link>
      <description>&lt;P&gt;You're perfectly right. The problem came from the place where i put the import command. It must be in the advanced settings and not in the basic settings.&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 09:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206772#M6691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-21T09:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Base64 cannot be resolved</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206773#M6692</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKxHAAW"&gt;@abelya&lt;/A&gt;, great!&lt;/P&gt;
&lt;P&gt;However, you should mark the answer that help you, not your own.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 09:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Base64-cannot-be-resolved/m-p/2206773#M6692</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-09-21T09:57:46Z</dc:date>
    </item>
  </channel>
</rss>

