More to the point: storing binary data in a database is not a good idea, especially if you just want to build an archive.
Instead, save the movie to disk and store it's name and location in the database.
Then you can search for a movie in the database, find it's location on disk, and give that location to the user so he can download it directly from disk. This saves you a lot of work, time and bugs.