db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sriram N <sriramx_2...@yahoo.com>
Subject Re: How to invoke methods of Blob interface
Date Sat, 19 Feb 2005 09:32:18 GMT

--- Mithun Ruikar <mithunruikar@yahoo.com> wrote:

> Hello , 
> Barnet Wagman replied me , to use setBinaryStream method of Blob interface.
> But How can I instantiate Blob object , as it is interface and I dont know
> it's implemetation ?

I believe you should not instantiate a Blob object. Blob is an interface, and
it should be an object that knows how to connect to the underlying data and
present it to the client programmer.

Since you wish to write an Object to the database, please see if the setBytes()
method of the PreparedStatement class meets your needs.

> How I can get blob object to call setBinaryStream.
> that is :
> ps.setBinaryStream(psParamIndex, ins, b.length);
> from where you got this ps and what is the value of psParamIndex.
> thank you 
> -- mithun

Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 

View raw message