Storing video files and playing

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
andrewj
Forum Newbie
Posts: 13
Joined: Tue Nov 25, 2008 7:58 am

Storing video files and playing

Post by andrewj »

Hi,

How do i store video files in SQL can i do with BLOB? if so how can i play it online?

Advance thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Storing video files and playing

Post by Christopher »

You can store any kind of data in a BLOB. Search around for examples of adding and getting BLOB data from your database. And, in general to have PHP generate a response that is not HTML you use the header() method to set the MIME type of the data and then echo/dump the content.
(#10850)
andrewj
Forum Newbie
Posts: 13
Joined: Tue Nov 25, 2008 7:58 am

Re: Storing video files and playing

Post by andrewj »

hi

I'm a novice :( data is beign saved in the DB, can you please explin in detail as how to do the rest?

Advance big thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Storing video files and playing

Post by Christopher »

See the manual for the header() function about setting 'Content-type'.
(#10850)
andrewj
Forum Newbie
Posts: 13
Joined: Tue Nov 25, 2008 7:58 am

Re: Storing video files and playing

Post by andrewj »

ok i got that can u please tell step by step as how i should proceed. i can send audio to the database. next?

advance thanks
Post Reply