This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
hello all, i've have again a problem with storing a byte[] in a blob under oracle ... is there a way to store byte[]like this ( or another way any help is great ) ?
i have an example with a filestream, but no idea how to insert byte[] directly ...
the above might work for you. If not try these: There is more info here. Jamie
Harry Wood
Greenhorn
Joined: Jan 28, 2004
Posts: 16
posted
0
Yeah 'ps.setBinaryStream' worked for me.
...and for reading the blob back again I used:
Trying to use 'resultSet.getBytes' seemed to work, but it always came back with 86 bytes of useless poo (???)
Probably all depends what JDBC driver you're using though.
Ajith Kallambella
Sheriff
Joined: Mar 17, 2000
Posts: 5782
posted
0
Hello "snoofle"-
Welcome to JavaRanch.
On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it - please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.
Enyoy your time here.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).