<?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: Image from MySQL to diretory.... in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344595#M112232</link>
    <description>First stop on step one...can't get file from the MySQL base,... yes I have read ..blog output from oracle database... with header... but I need the most simple solution... 
&lt;BR /&gt;This look nice but just don't work for me.. 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt;</description>
    <pubDate>Tue, 27 Oct 2009 02:32:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-10-27T02:32:44Z</dc:date>
    <item>
      <title>Image from MySQL to diretory....</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344592#M112229</link>
      <description>Yesterday I didn't know this software exist... today I have to transfer 10 000 users from one server with its own dating(home made) script to another server with other dating script (Abledating)...&lt;BR /&gt;Everything is problem, but one of the bigger is that on server one images and video are stored in the MySQL base an in the other server the images is in folders and users in MySQL...&lt;BR /&gt;2000 images and 58 videos to...&lt;BR /&gt;not much? The only way I done it before is with Ctrl+C and Ctrl+V....&lt;BR /&gt;Have been on forum for last 10 hour... learning...&lt;BR /&gt;But feel I need some basic advice... what to do, how, were to learn...&lt;BR /&gt;Have to put together thinks like hair color, weight .... athletic body and so on...&lt;BR /&gt;What I can do is to put both sites on the same server, will that help?&lt;BR /&gt;grateful for any advice....&lt;BR /&gt;Need to have it don in 3 days....&lt;BR /&gt;newbie x 2</description>
      <pubDate>Sat, 16 Nov 2024 13:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344592#M112229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Image from MySQL to diretory....</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344593#M112230</link>
      <description>Hello 
&lt;BR /&gt;You can see the related components on 
&lt;A href="http://www.talend.com/resources/documentation.php" target="_blank" rel="nofollow noopener noreferrer"&gt;user documentation&lt;/A&gt;.
&lt;BR /&gt;tMysqlInput is used to extract records from mysql table, and you can use tFileList to iterate one folder and copy each image/video with tFileCopy component.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 26 Oct 2009 02:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344593#M112230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-26T02:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Image from MySQL to diretory....</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344594#M112231</link>
      <description>Thank shong for the tips... 
&lt;BR /&gt;god start is: 
&lt;BR /&gt; 
&lt;A href="http://www.talendforge.org/tutorials/menu.php" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/tutorials/menu.php&lt;/A&gt; 
&lt;BR /&gt;To have some control on the proces I will try to use your tips to sprakash tips from: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqULCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Data-Migration-between-two-MySQL-Host-with-logging/td-p/109177&lt;/A&gt; 
&lt;BR /&gt;will go on with reporting solutions and problem...</description>
      <pubDate>Mon, 26 Oct 2009 18:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344594#M112231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-26T18:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Image from MySQL to diretory....</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344595#M112232</link>
      <description>First stop on step one...can't get file from the MySQL base,... yes I have read ..blog output from oracle database... with header... but I need the most simple solution... 
&lt;BR /&gt;This look nice but just don't work for me.. 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt;</description>
      <pubDate>Tue, 27 Oct 2009 02:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344595#M112232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T02:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Image from MySQL to diretory....</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344596#M112233</link>
      <description>Hello
&lt;BR /&gt;To get blob type from mysql, you need to write some java code. If you know java knowledge, it is easy to do that. Here is a 
&lt;A href="http://www.roseindia.net/java/java-get-example/get-blob.shtml" target="_blank" rel="nofollow noopener noreferrer"&gt;java example&lt;/A&gt; getting blog from mysql.
&lt;BR /&gt;In Talend, 
&lt;BR /&gt;1)create a routine to get blob type from mysql (see screenshot1)eg:
&lt;BR /&gt;
&lt;PRE&gt;package routines;&lt;BR /&gt;import java.io.*;&lt;BR /&gt;import java.sql.*;&lt;BR /&gt;public class GetBlobFromMysql {&lt;BR /&gt;	public static void getBlob(int id) {&lt;BR /&gt;		FileOutputStream image;&lt;BR /&gt;		Connection con = null;&lt;BR /&gt;		PreparedStatement pstmt = null;&lt;BR /&gt;		Statement stmt = null;&lt;BR /&gt;		ResultSet res = null;&lt;BR /&gt;		StringBuffer query = null;&lt;BR /&gt;		String driverName = "com.mysql.jdbc.Driver";&lt;BR /&gt;		String url = "jdbc:mysql://localhost:3306/";&lt;BR /&gt;		&lt;BR /&gt;		String dbName = "register";&lt;BR /&gt;		String userName = "root";&lt;BR /&gt;		String password = "root";&lt;BR /&gt;		try {&lt;BR /&gt;			Class.forName(driverName);&lt;BR /&gt;			con = DriverManager.getConnection(url + dbName, userName, password);&lt;BR /&gt;			stmt = con.createStatement();&lt;BR /&gt;			ResultSet rs = stmt&lt;BR /&gt;					.executeQuery("select * from picture where image_id="+id);&lt;BR /&gt;			if (rs.next()) {&lt;BR /&gt;				Blob test = rs.getBlob("image");&lt;BR /&gt;				InputStream x = test.getBinaryStream();&lt;BR /&gt;				int size = x.available();&lt;BR /&gt;				OutputStream out = new FileOutputStream("C:\\myfolder\\"+id+".jpg");&lt;BR /&gt;				byte b[] = new byte;&lt;BR /&gt;				x.read(b);&lt;BR /&gt;				out.write(b);&lt;BR /&gt;			}&lt;BR /&gt;		} catch (Exception e) {&lt;BR /&gt;			System.out.println("Exception :" + e);&lt;BR /&gt;		} finally {&lt;BR /&gt;			try {&lt;BR /&gt;				stmt.close();&lt;BR /&gt;				con.close();&lt;BR /&gt;			} catch (Exception e) {&lt;BR /&gt;				System.out.println(e);&lt;BR /&gt;			}&lt;BR /&gt;		}&lt;BR /&gt;	}&lt;BR /&gt;}&lt;/PRE&gt;
&lt;BR /&gt;2)then, call this routine on tJava, tJavaRow or tMap(see screenshot2)
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 27 Oct 2009 02:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344596#M112233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T02:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Image from MySQL to diretory....</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344597#M112234</link>
      <description>yes it works now...
&lt;BR /&gt;
&lt;IMG src="https://community.qlik.com/" /&gt;</description>
      <pubDate>Tue, 27 Oct 2009 05:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344597#M112234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T05:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Image from MySQL to diretory....</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344598#M112235</link>
      <description>A simpler way is to use MySQL's cast() function to convert the blob to char e.g.,&lt;BR /&gt;&lt;PRE&gt;select cast(Data as char(10000) ) cdb_data from Accounts where DataKey = '13023512558'&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2015 17:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Image-from-MySQL-to-diretory/m-p/2344598#M112235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-17T17:03:01Z</dc:date>
    </item>
  </channel>
</rss>

