9596979899100101102103104105
ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(value); out.flush(); if (useHibernateBlob()) { st.setBlob(index, new BlobImpl(bytes.toByteArray())); } else { st.setBytes(index, bytes.toByteArray()); }