title: Setting byte[] to SQL prepared statement
body: <p>I am setting an SQL prepared statement like this:</p>
  
  <pre><code>prd.setBytes(i+1, temp_value);
  </code></pre>
  
  <p>Where temp_value is of type byte[].</p>
  
  <p>At the end i am adding the prd statement to a batch like this:</p>
  
  <pre><code>prd.addBatch();
  prd.executeBatch();
  </code></pre>
  
  <p>The executeBatch gives me the exception: 
  <strong>java.sql.BatchUpdateException: Error converting data type varbinary to numeric.</strong></p>
  
  <p>Is it possible to simply add Bytes to a prepared statement no matter if the field in the DataBase table is of type Numeric or any other type?</p>
  
  <p>Do i have to be speccific about the type i am inserting?</p>