This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I tried to read a blob value from a Mysql database.But this field is obtained as java.sql.types varlongbinary instead of BLOB. Now when i tried to read the content of the blob field which is an xml using getbinaryStream method, i encountered some problems. I have read the contents into a byte array using read method of inputstream and when i converted this byte array to a string using toString it returns the byte array object value and not the orirginal contents. Actually i want to read this content and insert into a clob field of an oracle database. Somebody Please help me to sort out the problem.