public function executeThumb($request)
{
$image = PicturePeer::
getMainPictureByOfferId($this->getRequestParameter('offer_id'))->getPicture();
$response = $this->getResponse();
$response->clearHttpHeaders();
$response->setContentType('image/jpeg');
$response->setContent($image);
*
$response->send();
throw new sfStopException();*
}
On Mon, Nov 24, 2008 at 11:39 AM, brajesh <[EMAIL PROTECTED]> wrote:
>
> I am facing similar issue in 1.0 ...
>
> In my case, the content type remains set to "text/html" in spite of
> setting it to "image/jpeg" in the action...
>
> On Nov 12, 2:48 am, Eno <[EMAIL PROTECTED]> wrote:
> > On Nov 7, 5:29 pm, Samir <[EMAIL PROTECTED]> wrote:
> >
> > > Well, when I call the URL of the action
> (eghttp://.../frontend_dev.php/offer/thumb?offer_id=1)
> > > all I get is a text message: "
> http://karhabti/frontend_dev.php/offer/thumb?offer_id=1" instead of the
> > > expected image.
> >
> > What I would do is use a Firefox extension like LiveHTTP to see what
> > the HTTP responses to that URL look like.
> >
> > --
> >
>
--
Thomas Rabaix
Internet Consultant
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---