db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Noll <dan...@nuix.com.au>
Subject Creating a Blob
Date Fri, 19 May 2006 01:18:55 GMT
Hi all.

I have some large binary content of unknown length which I want to 
insert into our Derby database.  Our existing system does this by 
writing the content to a temporary location, determining its size and 
then using PreparedStatement's setInputStream method to pass it in.

However, it occurs to me that the Blob API gives me a way to access an 
OutputStream which can be written to in order to push the large binary 
data over to Derby.  Problem is, Blob is an interface with no [useful] 
public implementations, and JDBC expects that each driver will offer a 
different way to do this (if at all.)

Does Derby have a "secret" way to create a Blob object?


Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web: http://www.nuix.com.au/                        Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

View raw message