This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Urgent help needed!  How to set NULL value to a binary field? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Urgent help needed!  How to set NULL value to a binary field?" Watch "Urgent help needed!  How to set NULL value to a binary field?" New topic
Author

Urgent help needed! How to set NULL value to a binary field?

liang gu
Ranch Hand

Joined: Nov 05, 2001
Posts: 89
I am calling a stored procedure in JDBC, and I need to set a IN binary field to the NULL value. How to do it? Will stmt.setBytes(null) work?
THANKS!
Liang
Branko Paskutini
Greenhorn

Joined: Apr 18, 2002
Posts: 25
Hi Liang, you can use PreparedStatement's method. PreparedStatement is superinterface to CallableStatement.
Branko.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent help needed! How to set NULL value to a binary field?