You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Eitan Ben-Noach <Ei...@sandisk.com> on 2006/12/31 09:29:10 UTC
RE: Using ESQL to insert binary data into BLOB filed usingInputStream
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