title: How to insert a 'null' value into a blob field (mysql)
body: <p>i need to insert a "null" value into the blob field of my DB mysql. I have to do it in a servlet.</p>
  
  <p>I tried this way</p>
  
  <pre><code>statement.setBlob(1,  null);
  </code></pre>
  
  <p>but i get this error</p>
  
  <pre><code>The method setBlob(int, Blob) is ambiguous for the type PreparedStatement
  </code></pre>
  
  <p>I tried even this way </p>
  
  <pre><code>statement.setBlob(1,  EMPTY_BLOB());
  </code></pre>
  
  <p>but i get this error</p>
  
  <pre><code>The method EMPTY_BLOB() is undefined for the type Name_Of_My_Class
  </code></pre>