Re: Problem with inserting blob
- From: "Aditya Kumar" <aditya2507@xxxxxxxxx>
- Date: 2 Nov 2006 22:03:53 -0800
Well, I got it working. The problem was the jdbc driver.
But it is indeed strange, I was using the driver file ojdbc14.jar (the
one for version Oracle 9i), and it was throwing exception while
inserting Blob. I downloaded the new jar file for Oracle 10g (which is
supposed to be backward compatible) and its working with the 9i DB now.
No code change whatsoever.
Thank you for all your replies!
aditya2507@xxxxxxxxx wrote:
Thomas Kellerer wrote:
This works fine for me. But it might be a driver issue. My experience is that
older drivers do not implement the setBinaryStream() stuff correctly. Download
the latest 10g driver (will work with 9i without problems) and try it with that one.
Right, could be that. Someone else too tried the code that I put here
and it seemed to work fine for him. So I guess there's nothing wrong
with the code. Also, I think if the OCI driver is used, this would work
-- I read that somewhere in a forum but it could be speculation, so I
can't be sure of that. Anyway, I got nothing to loose, will try the 10g
driver as well. Thank you for your reply Thomas, appreciate it.
.
- References:
- Re: Problem with inserting blob
- From: Thomas Kellerer
- Re: Problem with inserting blob
- From: aditya2507
- Re: Problem with inserting blob
- Prev by Date: Re: Problem with inserting blob
- Next by Date: binding array parameters in a preparedStatement
- Previous by thread: Re: Problem with inserting blob
- Next by thread: Re: Problem with inserting blob
- Index(es):
Relevant Pages
|