[eluser]FabD[/eluser]
Problem solved.
What was wrong : the datatype of the variable was an OCI-Lob Object.
Not allowed to put it directly into a string of course :cheese:
so here is the code of the model's method
Code:
function getImage($Id)
{
$Q = $this->db->query("SELECT MA_PHOTO FROM GERICO.REF_MARCHES WHERE MA_ID=".$Id);
if ($Q->num_rows()) {
$data = $Q->row_array();
$data = $data['MA_PHOTO'];
$Q->free_result();
}
$size = $data->size();
$ret = $data->read($size);
return (isset($ret)) ? $ret : '';
}
Thank you, TheFuzzy0ne, for your answers, patience and tips.