
Anonymous
Not applicable
2015-10-16
03:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[resolved] Converting Object(BLOB) to String
Hi,
i'm trying to convert an Object field (Blob type) into String... actually i'm looking for a talend equivalent for "convert(column using utf8)".
That works in my case, but i have several fields to convert using talend... it there an alternative?
Thanks!
i'm trying to convert an Object field (Blob type) into String... actually i'm looking for a talend equivalent for "convert(column using utf8)".
That works in my case, but i have several fields to convert using talend... it there an alternative?
Thanks!
1,976 Views
- « Previous Replies
-
- 1
- 2
- Next Replies »
1 Solution
Accepted Solutions

Anonymous
Not applicable
2015-10-16
03:45 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This cannot work because if you have in the schema the java type Object you will get a java.sql.Clob object and that cannot be cast to String.
Please edit the schema of the table and set the CLOB columns to the Java type String.
In the tMap it is to late. You have to force the database input component to get the value as String and not as java.sql.Clob object.
Please edit the schema of the table and set the CLOB columns to the Java type String.
In the tMap it is to late. You have to force the database input component to get the value as String and not as java.sql.Clob object.
1,770 Views
11 Replies

Anonymous
Not applicable
2015-10-16
03:36 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you tried to set as Java type in the Talend schema for these kind of columns the type "String" ?
1,770 Views

Anonymous
Not applicable
2015-10-16
03:42 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi jlolling,
i used "(String)row1.column" in tmap but only gives me random characters
Thanks
i used "(String)row1.column" in tmap but only gives me random characters
Thanks
1,770 Views

Anonymous
Not applicable
2015-10-16
03:45 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This cannot work because if you have in the schema the java type Object you will get a java.sql.Clob object and that cannot be cast to String.
Please edit the schema of the table and set the CLOB columns to the Java type String.
In the tMap it is to late. You have to force the database input component to get the value as String and not as java.sql.Clob object.
Please edit the schema of the table and set the CLOB columns to the Java type String.
In the tMap it is to late. You have to force the database input component to get the value as String and not as java.sql.Clob object.
1,771 Views

Anonymous
Not applicable
2015-10-16
03:46 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
UPDATE:
i've set the Java type to String and same results
i've set the Java type to String and same results
1,770 Views

Anonymous
Not applicable
2015-10-16
03:47 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please show me a screenshot. I do the same and have problems with it.
1,770 Views

Anonymous
Not applicable
2015-10-16
03:54 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey finally WORKS!!!
i've change the Schema as you said and it works...
Thank you so much
i've change the Schema as you said and it works...
Thank you so much
1,770 Views

Anonymous
Not applicable
2019-01-07
07:43 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I need to transfer clob data type from oracle to text file. in mapping we are using tjavarow and toraclerow. and we have to pass this column from tjavarow to toraclerow. I tried a lot but could not get solution.
Kindly help.
Thanks
1,770 Views

Anonymous
Not applicable
2019-01-29
02:53 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
If you are working with Oracle, you can use tOracleInput to read the CLOB column (Column Type can be set as Object).
Best regards
Sabrina
1,770 Views

Contributor
2022-01-31
02:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Several times I tried to transfer the Oracle BLOB data to MEDIUMBLOB of MYSQL using customer components tLOBDownload , not working , if any configuration , please help.
Thanks
Prabir
1,770 Views

- « Previous Replies
-
- 1
- 2
- Next Replies »