Home  |  Linux  | Mysql  | PHP  | XML
From:Philip Thompson Date:Tue Apr 29 09:51:48 2008
Subject:Re: playing longblob media
On Apr 28, 2008, at 12:49 AM, Chris wrote:
> Philip Thompson wrote:
>> On Apr 27, 2008, at 9:15 AM, Ron wrote:
>>> Hi,
>>>
>>> How can i retrieve via php a media stored in a mysql database as  
>>> longblob?
>>>
>>> I'd like to be able to retrieve the media and stream it.
>>>
>>> TIA
>>>
>>> regards,
>>> ron
>> Just like any other field type. Doesn't matter to PHP what the  
>> field type is...
>
> But it does to the browser.
>
> You'll need to send the appropriate headers for the browser to do  
> the right thing, and since it's probably a big field instead of  
> saving it to a variable, just echo it out.
>
> No idea what the right headers are though :)

I understand that the headers are important. However, that was not the  
question. The question asked how to retrieve data from a mysql  
database using PHP. I answered that question...

~Philip
Navigate in group php.db at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants