joseleonweb

Untitled

May 4th, 2021
523
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try {
  2.   java.sql.Blob blob = oracle.sql.BLOB.createTemporary(
  3. connection, false, oracle.sql.BLOB.DURATION_SESSION);
  4.   OutputStream os = blob.setBinaryStream(1);
  5.   os.write(arrayDeBytes);
  6.      String sql = "insert into taula (imatge) values (?)";
  7.   PreparedStatement stmt = con.prepareStatement(sql);
  8.   stmt.setBlob(1, blob);
  9.   stmt.execute();
  10. } finally {
  11.   blob.free();
  12. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×