<?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: protocole SMB :: Samba in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284313#M58033</link>
    <description>I have create feature request 5503&lt;BR /&gt;Regards,</description>
    <pubDate>Wed, 29 Oct 2008 11:49:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-10-29T11:49:20Z</dc:date>
    <item>
      <title>protocole SMB :: Samba</title>
      <link>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284308#M58028</link>
      <description>hi, 
&lt;BR /&gt;Sometime i have to get data from OS windows ; i've got a a samba "partage" with it to retrieve them ... manually. 
&lt;BR /&gt;So it will be helpfully to access those repositories by protocole smb:// ............. 
&lt;BR /&gt;thanks for your attention</description>
      <pubDate>Sat, 16 Nov 2024 14:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284308#M58028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: protocole SMB :: Samba</title>
      <link>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284309#M58029</link>
      <description>Hello, 
&lt;BR /&gt;Here is a java routine that will help you. 
&lt;BR /&gt;In order to use it, you will need to download the jcifs library from 
&lt;A href="http://jcifs.samba.org/src/" rel="nofollow noopener noreferrer"&gt;http://jcifs.samba.org/src/&lt;/A&gt; and add it to the routine libraries (Right Click on the routine, Edit Routine Libraries) 
&lt;BR /&gt;If you find it interesting, you can ask for a feature request on tFileFetch component to support smb protocol. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt; 
&lt;PRE&gt;// template routine Java&lt;BR /&gt;package routines;&lt;BR /&gt;import jcifs.smb.*;&lt;BR /&gt;import java.io.*;&lt;BR /&gt;&lt;BR /&gt;public class SambaTest {&lt;BR /&gt;	  &lt;BR /&gt;	  private static void copySMBFile(String domain, String username, String password, String srcURL, String destFile){&lt;BR /&gt;		  try {&lt;BR /&gt;			  // To connect to a server on a remote subnet the IP address of a WINS server is required to retrieve the target address although DNS names and direct IP addresses are also valid server components within an SMB URL&lt;BR /&gt;			  // jcifs.Config.setProperty( "jcifs.netbios.wins", "192.168.1.220" );&lt;BR /&gt;			  &lt;BR /&gt;			  NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(domain, username, password);&lt;BR /&gt;			  //SmbFile(java.lang.String url, NtlmPasswordAuthentication auth)&lt;BR /&gt;			  SmbFile SF = new SmbFile(srcURL,auth);&lt;BR /&gt;			  SmbFileInputStream in = new SmbFileInputStream(SF);&lt;BR /&gt;			  &lt;BR /&gt;			  File f2 = new File(destFile);&lt;BR /&gt;			  OutputStream out = new FileOutputStream(f2);&lt;BR /&gt;			  &lt;BR /&gt;			  byte[] buf = new byte;&lt;BR /&gt;			  int len;&lt;BR /&gt;			  while ((len = in.read(buf)) &amp;gt; 0){&lt;BR /&gt;				  out.write(buf, 0, len);&lt;BR /&gt;			  }&lt;BR /&gt;			  in.close();&lt;BR /&gt;			  out.close();&lt;BR /&gt;		  } catch(FileNotFoundException ex) {&lt;BR /&gt;			  System.out.println(ex.getMessage());&lt;BR /&gt;		  } catch(IOException e) {&lt;BR /&gt;			  System.out.println(e.getMessage());      &lt;BR /&gt;		  }&lt;BR /&gt;	  }&lt;BR /&gt;	  &lt;BR /&gt;	  public static void main(String[] args){&lt;BR /&gt;		  SambaTest.copySMBFile("domain", "username", "password", "smb://host/dir/distantfile.txt", "C:/localfile.txt");&lt;BR /&gt;		}&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Oct 2008 16:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284309#M58029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-24T16:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: protocole SMB :: Samba</title>
      <link>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284310#M58030</link>
      <description>thanks a lot mhirt 
&lt;BR /&gt;I didn't know anything about this library , and it 'll resolve some of my "problems" ... 
&lt;BR /&gt;In fact we're plan to migrate all applications on a OS linux but we can do all things we'd like to. (lol for my frenglish) 
&lt;BR /&gt;never mind , il'll going to try you code right now and effectively a tFileFech Smtp 'll be hepfully for some occasions 
&lt;BR /&gt;... seems to be</description>
      <pubDate>Fri, 24 Oct 2008 22:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284310#M58030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-24T22:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: protocole SMB :: Samba</title>
      <link>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284311#M58031</link>
      <description>Time to use the &lt;A href="http://talendforge.org/bugs" rel="nofollow noopener noreferrer"&gt;http://talendforge.org/bugs&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Fri, 24 Oct 2008 22:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284311#M58031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-24T22:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: protocole SMB :: Samba</title>
      <link>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284312#M58032</link>
      <description>your code works perfectly ... 
&lt;BR /&gt;I can now retrieve easily any files I want with "SMB" protocole with a tJavaFlex component (so simple) 
&lt;BR /&gt; 
&lt;PRE&gt;routines.test.SMB_connection.runSMB(context.domain, context.username, context.password, context.srcURL, context.destFile);&lt;/PRE&gt; 
&lt;BR /&gt;PS : I've tried to add "a feature" in the bugtracker" but didn't find the way to (sic) !</description>
      <pubDate>Tue, 28 Oct 2008 12:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284312#M58032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-28T12:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: protocole SMB :: Samba</title>
      <link>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284313#M58033</link>
      <description>I have create feature request 5503&lt;BR /&gt;Regards,</description>
      <pubDate>Wed, 29 Oct 2008 11:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284313#M58033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-29T11:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: protocole SMB :: Samba</title>
      <link>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284314#M58034</link>
      <description>thanks a lot&lt;BR /&gt;Regards&lt;BR /&gt;laurent</description>
      <pubDate>Thu, 30 Oct 2008 09:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/protocole-SMB-Samba/m-p/2284314#M58034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-30T09:01:35Z</dc:date>
    </item>
  </channel>
</rss>

