i want to insert image in oracle database basically that is oci using php ajax and jquery but i dont get any example in internet if someone has a solution please give me. thanks in advance
                        <label for="">Upload Picture : </label>
                      <div class="input-group">
                            <div class="input-group-prepend">
                              <span class="input-group-text"><i class="far fa-image"></i></span>
                            </div>
                              <input  type="file" name="image" id="image">                         
                      </div>
                    </div>
$("#hrm_employeesAddForm").on('click','#addHrmEmployees',function(){
  var dp = $('#image').val();
  $.ajax({
            url  : 'api/Hrm/hrm_employee_api.php',
            type : 'POST',
            data : {action:'imgs',dp:dp},
            success:function(response){
              $("#image").val("");
            }
       })
});
if(isset($_POST['action']) && $_POST['action'] == 'imgs'){
    if(isset($_POST['dp']) || empty($_POST['dp']))
    {
        $dp = $_POST['dp'];
        $image = file_get_contents($_FILES['image_field_name']['tmp_name']);
        $sql = "INSERT INTO COD_EMPLOYEES (EMP_IMAGE) VALUES(empty_blob()) RETURNING EMP_IMAGE INTO :image";
        $result = oci_parse($conn, $sql);
        $blob = oci_new_descriptor($conn, OCI_D_LOB);
        oci_bind_by_name($result, ":image", $blob, -1, OCI_B_BLOB);
        oci_execute($result, OCI_DEFAULT) or die ("Unable to execute query");
        
        if(!$blob->save($image)) {
            oci_rollback($conn);
        }
        else {
            oci_commit($conn);
        }
        
        oci_free_statement($result);
        $blob->free();
}}
 
    