title: How to handle BLOB and CLOB in olingo v2?
body: <p><a href="http://olingo.apache.org/doc/odata2/tutorials/HandlingClobAndBlob.html" rel="nofollow noreferrer">Here</a> there is pseudocode about how to handle BLOB and CLOB in olingo jpa. I added the needed imports to the pseudocode:</p>
  <pre class="lang-java prettyprint-override"><code>package me;
  
  import java.sql.Blob;
  import java.sql.Clob;
  import java.sql.SQLException;
  
  import javax.sql.rowset.serial.SerialException;
  
  import org.apache.olingo.odata2.jpa.processor.api.OnJPAWriteContent;
  import org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPARuntimeException;
  
  public class OnDBWriteContent implements OnJPAWriteContent {
  
      @Override
      public Blob getJPABlob(byte[] binaryData) throws ODataJPARuntimeException {
          try {
              return new JDBCBlob(binaryData);
          } catch (SerialException e) {
              ODataJPARuntimeException.throwException(ODataJPARuntimeException.INNER_EXCEPTION, e);
          } catch (SQLException e) {
              ODataJPARuntimeException.throwException(ODataJPARuntimeException.INNER_EXCEPTION, e);
          }
          return null;
      }
  
      @Override
      public Clob getJPAClob(char[] characterData) throws ODataJPARuntimeException {
          try {
              return new JDBCClob(new String(characterData));
          } catch (SQLException e) {
              ODataJPARuntimeException.throwException(ODataJPARuntimeException.INNER_EXCEPTION, e);
          }
          return null;
      }
  }
  </code></pre>
  <p>the only problem is I couldn't find any implementation for <code>JDBCBlob</code> and <code>JDBCClob</code>. Any suggestion about how can I implement them or use some classes?</p>