cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eitan Ben-Noach" <Eitan.Ben-No...@sandisk.com>
Subject RE: Using ESQL to insert binary data into BLOB filed usingInputStream
Date Sun, 31 Dec 2006 08:29:10 GMT
Thanks, Alfred.

That's what I eventually did. But I'm still surprised that I can't find
a way to do it with ESQL. For example, there is no problem to insert a
CLOB field.

One of the EQSL advantages is that you don't need to mass with Context
lookup and connections

Eitan

-----Original Message-----
From: Alfred Nathaniel [mailto:anathaniel@apache.org] 
Sent: Friday, December 29, 2006 1:45 AM
To: users@cocoon.apache.org
Subject: Re: Using ESQL to insert binary data into BLOB filed
usingInputStream

On Tue, 2006-12-26 at 04:06 -0800, Eitan Ben-Noach wrote:

> I would like to insert a file content (binary) into a BLOB field in my
> database (oracle ) using the file InputStream.
> 
> Something that is analogous to java.sql.PreparedStatement.
> setBinaryStream();

ESQL is a great tool for ad-hoc queries but for database updates I'd
recommend you to encapsulate it in a separate Java class.

Cheers, Alfred.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message