title: How to create BLOB object?
body: <ol>
  <li>How to create BLOB object in Java?</li>
  <li>How to set the BLOB value from DB?</li>
  <li>How to set the BLOB value in DB?</li>
  </ol>
  <p>I have create the BLOB object like this:</p>
  <pre><code>byte [] fileId = b.toByteArray();
  Blob blob = new SerialBlob(fileId);
  </code></pre>
  <p>But it gives me an error.</p>