Creating BLOB in Java
From: Arun (aruns_nj_at_yahoo.com)
Date: 03/09/04
- Next message: Jacob Levy: "[ANNOUNCE] e4Graph 1.0a11"
- Previous message: Joe Fischer: "Re: finding connection leaks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 8 Mar 2004 20:44:48 -0800
We are using JDBC to call the stored procedures in the Backend
Mainframe DB2 Database. We are testing our procedures using DB2
Connect V8 jdbc driver/Java. One of the stored procedures uses a BLOB
parameter. DB2 Connect v7 accepted byte stream TYPE for a BLOB
parameter. So all we had to do was convert the input data(from file)
in to a byte stream and call the stored procedure.
We are trying to move to DB2 Connect V8. However DB2 Connect
V8 does not accept a bytestream, it needs a BLOB object type for a
Blob Parameter. Can anyone give me some tips on how to create a BLOB
object?. I created a class by implementing the java.sql.blob
interface, but I am missing something because I don't see the data in
the DB2 stored procedure.
Thanks.
- Next message: Jacob Levy: "[ANNOUNCE] e4Graph 1.0a11"
- Previous message: Joe Fischer: "Re: finding connection leaks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|