Re: playing longblob media

From: Date: Mon, 28 Apr 2008 05:49:20 +0000
Subject: Re: playing longblob media
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-44910@lists.php.net to get a copy of this message
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 :) -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#44910) next »