You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
load->model(array('Fotos_model'));
}
public function index() {
$this->load->view('webcam/index_view');
}
public function ajax () {
$src = $this->input->post('src');
$this->Fotos_model->gravarFoto($src);
$foto = $this->Fotos_model->getLastFoto();
$this->output->set_output ($foto);
}
}
```
And my Model
db->insert('fotos',array('foto'=>$foto));
}
public function getLastFoto() {
return $this->db->order_by('id','desc')->get('fotos')->row()->foto;
}
```
}
The text was updated successfully, but these errors were encountered:
Hi Leemachin, first thanks a lot, I loved it.
Second, when I record... the data in the DB is coming as a .bin file... Any thoughts on that?
I'm using it on a codeigniter system.
Here is my View
<title>WebCam</title>Here is my controller
load->model(array('Fotos_model')); } public function index() { $this->load->view('webcam/index_view'); } public function ajax () { $src = $this->input->post('src'); $this->Fotos_model->gravarFoto($src); $foto = $this->Fotos_model->getLastFoto(); $this->output->set_output ($foto); } } ``` And my Model db->insert('fotos',array('foto'=>$foto)); } public function getLastFoto() { return $this->db->order_by('id','desc')->get('fotos')->row()->foto; } ``` }The text was updated successfully, but these errors were encountered: