I Have a School Project Where I Have to Record the User's Webcam with Video/Audio and store the recorded file in a database. I'm Limited on space so the lecturer said to store it in the database for now.

What would be the best way to do this? Any Examples? Is is possible to do?

And I Am Looking for a free way to do it?