Re: Displaying Images from Database

2012-05-22 Thread Steve Found
On 21/05/12 14:58, Miah Gregory wrote: To render the images directly from the database, you need to output an appropriate mime type header then send the image data to the caller. It's doable in cake, but you need to jump through a few hoops. You certainly don't need to write the image to disk t

Re: Displaying Images from Database

2012-05-21 Thread Miah Gregory
sensible way to go - that's a whole different discussion. -- Regards, Miah -Original Message- From: Steve Found Reply-to: cake-php@googlegroups.com To: cake-php@googlegroups.com Subject: Re: Displaying Images from Database Date: Mon, 21 May 2012 12:21:42 +0100 Mailer: Mozilla/5.0

Re: Displaying Images from Database

2012-05-21 Thread teji infin
thnx yr On Mon, May 21, 2012 at 4:52 PM, LITTO CHACKO wrote: > u r imagename is storing to databse.. the image u uploded is going to some > other else > > > On Mon, May 21, 2012 at 4:35 PM, AD7six wrote: > >> >> >> On Monday, 21 May 2012 12:42:46 UTC+2, Teji wrote: >>> >>> Actually i am storing

Re: Displaying Images from Database

2012-05-21 Thread LITTO CHACKO
u r imagename is storing to databse.. the image u uploded is going to some other else On Mon, May 21, 2012 at 4:35 PM, AD7six wrote: > > > On Monday, 21 May 2012 12:42:46 UTC+2, Teji wrote: >> >> Actually i am storing my images in my mysql database using image longblob >> named entry.. > > > Tha

Re: Displaying Images from Database

2012-05-21 Thread Steve Found
On 21/05/12 11:42, teji infin wrote: Actually i am storing my images in my mysql database using image longblob named entry.. On Mon, May 21, 2012 at 4:07 PM, LITTO CHACKO > wrote: if u stored your image in webroot folder u can display images rightly. but

Re: Displaying Images from Database

2012-05-21 Thread AD7six
On Monday, 21 May 2012 12:42:46 UTC+2, Teji wrote: > > Actually i am storing my images in my mysql database using image longblob > named entry.. That's most likely the first thing you should stop doing. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Displaying Images from Database

2012-05-21 Thread teji infin
Actually i am storing my images in my mysql database using image longblob named entry.. On Mon, May 21, 2012 at 4:07 PM, LITTO CHACKO wrote: > if u stored your image in webroot folder u can display images rightly. but > if u uploaded images out of webroot folder then u have to use some > imagec

Re: Displaying Images from Database

2012-05-21 Thread LITTO CHACKO
if u stored your image in webroot folder u can display images rightly. but if u uploaded images out of webroot folder then u have to use some imagecontroller to set path:- like this:- ?php class ImagepathController extends AppController{ function index(){ $query = $this->params->query; $file

Displaying Images from Database

2012-05-21 Thread Teji
Can anyone tell me how to display images from my database to my webpage. i upload the images in database using longblob datatype. anyone help plz.. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.o