Hello guys,

any idea why does action, which returns an image doesn't work anymore under
Symfony 1.2 (it worked fine under SF 1.1) ?
I checked the Propel Query and it's is still working ...

  public function executeThumb($request)
  {
    $image =
PicturePeer::getMainPictureByOfferId($this->getRequestParameter('offer_id'))->getPicture();
    $response = $this->getResponse();
    $response->clearHttpHeaders();
    $response->setContentType('image/jpeg','1','1');
    $response->setContent($image);
    return sfView::NONE;
  }

regards Samir

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to