title: Save file in oracle
body: <p>I have a following code that make a file:</p>
  
  <pre><code>  $imagem = base64_to_jpeg( $iten-&gt;file-&gt;content,  'saida.'.getB64Type( $iten-&gt;file-&gt;content ));
    $tamanhoImg = filesize($imagem);
    $mysqlImg = addslashes(fread(fopen($imagem, "r"), $tamanhoImg));
  
  // unlink($imagem);
  
    $values[2] = $mysqlImg;
  
    $teste = $osController-&gt;inserirAnexo( $values );
  </code></pre>
  
  <p>The file was made succefully and I would like save this file in oracle database that has the field <code>BLOB</code> type</p>
  
  <pre><code>public function inserirAnexo( $values ){
          require_once "class.connection_factory.php";
          $con  = new connection_factory();
          $conn = $con-&gt;getConnection();
          $retorno = false;
  
          $sql = "INSERT INTO TABLE_PIC VALUES (:p0,SEQ_SEEQUENCIA.NEXTVAL,:p1,:p2)";
       //   $valor1 = bin2hex( base64_decode( $values[2] ) ) ;
  
          try{
              $stmt = ociparse( $conn,$sql );
              oci_bind_by_name( $stmt, ":p0", $values[0] );
              oci_bind_by_name( $stmt, ":p1", $values[1] );
              oci_bind_by_name( $stmt, ":p2", $values[2] );
              $retorno = oci_execute( $stmt, OCI_COMMIT_ON_SUCCESS );
  
          }catch (PDOException $e){
              echo "Erro: ".$e-&gt;getMessage();
          }
  
          return $retorno;
      }
  </code></pre>
  
  <p>The value <code>:p2</code> is field with the a image file.</p>
  
  <p>When I try save in database show the following message:</p>
  
  <blockquote>
    <p>Warning: oci_execute(): ORA-01465: invalid hex number</p>
  </blockquote>