Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

String to Blob with TJdbcOuput and Oracle driver

Hello,
I have a long input String and need to save it into Oracle database via JDBC.
When i look convert TalendType to get blob in database i see : Id_Object => Blob
Someone could say me please how construct this object from a String ?
Regards
Labels (4)
5 Replies
Anonymous
Not applicable

Hi,
Need to convert your input string to byte[]
Then insert this byte to BLOB column. Pl refer...
https://community.talend.com/t5/Design-and-Development/Inserting-BLOB-or-CLOB-data-into-a-database/t...
earlier I have inserted a CSV file into MySQL BLOB. I can read the contents of file in BLOB column.
Vaibhav
_AnonymousUser
Specialist III
Specialist III
Author

Thanks, with Mysql you can do as this but TOracleOut need data type Object not byte[]
Anonymous
Not applicable

In the referred routine java code, convert to Object in place of byte[].
Is there any other problem?
Vaibhav
_AnonymousUser
Specialist III
Specialist III
Author

Yes , but what kind of of Object? How construct this object?
_AnonymousUser
Specialist III
Specialist III
Author

Finally it works with myString.getBytes()
Thanks and regards