• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Insert BLOB into oracle db

#1
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
    * 
    */ 
}
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.