posted 13 years ago
Hello,
I need some guidance with handling clob data. I have a derby table:
Hashes and salts are generated like this:
Then records are stored like this:
This bit works fine. At least I am convinced so.
Once I store the digests in a DB I use this method to compare them:
Hash and salt arguments being passed to the compareHashes() are the ones retrieved from a database with:
and also:
Clearly I am doing something wrong with getting data from Clobs. And this:
is the only way I coud come up with to convert the clob back to array, which isn't working like i would like it to. I thought byte[] arrays passed were binary and since clobs are? also binary it would work with out additional conversions.
Do any of you have any ideas/suggestions/libraries which would be able to convert the clobs to what I want?