Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

Insert BLOB into oracle db

$
0
0
Well I've already searched for this issue but it seems it is still not answered.
I have the same issue as this one. http://stackoverflow.com/questions/20016...odeigniter

Model(){

    function insertData($fileData){ 
   // array structure
   $db_row = array(
      "id" => $id,
      "blob1" => file_get_contents($fileData['full_path']),
      "blob2" => file_get_contents($fileData['full_path']),
      "blob3" => file_get_contents($fileData['full_path'])
   )

   return $this->db->insert("table", $db_row);
   }

   /* I showed file_get_contents($fileData['full_path']), though those values were actually passed down to the function through $filesData
    * The data is right when I use print_r
    * I do actually upload 3 or more blobs in one row
    * 
    */ 
}

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>