ps.setString(1, "someName");
byte[] blob = new byte[4096];
int sweeps = 10240; // 40 MB
int length = blob.length * sweeps;
PipedInputStream pi = new PipedInputStream();
PipedOutputStream po = new PipedOutputStream(pi);
ps.setBinaryStream(2, pi, length);
Pusher pusher = new Pusher(sweeps, blob, po);
pusher.start();