Update:

I got it working now. Apparently regarding retrieving BLOB objects something
changed in Propel 1.3. You have to use the method stream_get_contents() in
order to get the contents of a BLOB column. See
http://propel.phpdb.org/trac/wiki/Users/Documentation/1.3/LOBs

regards Samir

On Wed, Dec 3, 2008 at 12:20 AM, Samir van de Sand <[EMAIL PROTECTED]
> wrote:

> I tried the code you posted, but unfortunately it's still not working. Does
> anybody has other suggestions? It is sad, that I can't switch to SF 1.2 just
> because this single action isn't working.
>
> Oddly if I execute the action the browser reports that it's getting an
> image, but if I try to open it, it's empty.
>
> Btw I tracked the HTTPS reponses. Is this telling anybody something?
>
> http://karhabti/frontend_dev.php/offer/thumb?offer_id=1
>
> GET /frontend_dev.php/offer/thumb?offer_id=1 HTTP/1.1
> Host: karhabti
> User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.4)
> Gecko/2008111319 Ubuntu/8.10 (intrepid) Firefox/3.0.4
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Cookie: symfony=084adc09cdf3e3ce382620a22578f95a
>
> HTTP/1.x 200 OK
> Date: Tue, 02 Dec 2008 22:33:40 GMT
> Server: Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch
> X-Powered-By: PHP/5.2.6-2ubuntu4
> Content-Length: 16
> Keep-Alive: timeout=15, max=99
> Connection: Keep-Alive
> Content-Type: image/jpg
>
>
> On Tue, Nov 25, 2008 at 3:31 PM, Thomas Rabaix <[EMAIL PROTECTED]>wrote:
>
>> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to