posted 22 years ago
I solved this by using the following code (try{} blocks ommitted):
The basic idea is that you use a PreparedStatement, which allows you to set a BinaryStream as part of the insert. Then, wrap the byte[] array with a new ByteArrayInputStream, and set that as the binary stream to be inserted.
to get the byte array back out of the database, use this:
use the [CODE] tags - it makes it much easier for people to help you.