//zerst Objekt deserialiserien
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeObject(deinVector);
byte[] b = bos.toByteArray();
bos.close();
oos.close();
ByteArrayInputStream bis = new ByteArrayInputStream(b);
PreparedStatememt ps = connection.prepareStatement("insert into vectorstore (id, data) values (?, ?)");
ps.setInt(1, id);
ps.setBinaryStream(2, bis, b.length);
ps.executeUpdate();