hi. i can already upload pictures to my mysql database in blob format. i want to add an automatical resize when uploading. my code:
$fileData = fread(fopen($this->data['Picture']['File']['tmp_name'], "r +"), $this->data['Picture']['File']['size']); $this->data['Picture']['name'] = $this->data['Picture']['File'] ['name']; $this->data['Picture']['type'] = $this->data['Picture']['File'] ['type']; $this->data['Picture']['size'] = $this->data['Picture']['File'] ['size']; $this->data['Picture']['data'] = $fileData; $this->Picture->save($this->data); how can i implement a resize function now? does someone have any idea and some code? :) thanks and regards, clemens --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
