Re: using requestHandler to return jpg blob reuest headers

2011-12-15 Thread paulinthought
Well, I finally got a result. I gave up on the requestHandler and instead set the headers output in the controller using Controller::header('Content-type:'.$contentType); and sending the data content to the view in the normal way. Hope it helps someone else. On Dec 13, 11:47 pm, paulinthought wro

using requestHandler to return jpg blob reuest headers

2011-12-13 Thread paulinthought
Hi, I'm using cake1.2 and I've got a blob stored in my database. I'm trying to display it using $html->image(array('controller'=>'image_files','action'=>'show', 10)); I'm trying to get the requestHandler to set the correct header-type for the request but every time I load the page I get the raw ima