Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating LVARBINARY fields in JDBC

Status
Not open for further replies.

jonatan

Programmer
Mar 24, 2003
14
BR
I'm trying to insert a record in a table that contains a field of LVARBINARY data type. I'm using 'setBinaryStream' method of PreparedStatement to set the data.
When I execute the command, I get the following error:

Code:
java.sql.SQLException: Bad file descriptor
    at com.progress.sql.jdbc.JdbcProgressPreparedStatement.putParamData(JdbcProgressPreparedStatement.java:2714)
    at com.progress.sql.jdbc.JdbcProgressPreparedStatement.execute(JdbcProgressPreparedStatement.java:279)
    at com.progress.sql.jdbc.JdbcProgressPreparedStatement.executeUpdate(JdbcProgressPreparedStatement.java:144)
    at org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.executeUpdate(LocalPreparedStatement.java:308)
    at br.com.medisoft.util.SQLEspecifico$TratamentoAtualizacaoLote.executeUpdate(SQLEspecifico.java:309)
...

Anyone can help me, or give me some kind of code that works for LVARBINARY update?

Thanks,

---
Jonatan Schroeder
Medisoft Ltda. - Brazil
Tecnology Use Support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top