Results 1 to 4 of 4

Thread: Is it possible to store video files in a database??

  1. #1
    Join Date
    May 2009
    Posts
    970

    Is it possible to store video files in a database??

    Hello everyone, I am creating a website and obviously, it also includes a database. This website includes video clips and even reference to a video clip's location. So, I was thinking is it possible to store video files in a database. If yes, how? Is it a safe and a good practical approach by storing video files in a database. People with knowledge related to videos and database are required to give their views and valuable suggestions.
    Last edited by Chandranath; 27-11-2009 at 04:27 AM.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Is it possible to store video files in a database??

    It may be possible to store videos in a database, but I dont think that it a practical approach to do so. Rather store them in a folder that is contained on the server. You need to give a reference in the database field as a text or an integer. Following is an example that shows how to do so:
    Table Structure
    VideoId Int
    VideoNum Varchar or Int
    VideoId VideoNum
    1 video_1.file_format
    2 video_2.file_format
    3 video_3.file_format
    The folder that is contained in the database will have the files of the video as video_1.file_format, video_2.file_format, video_3.file_format, etc.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: Is it possible to store video files in a database??

    How could you even think of the possibility of storing the video files in a database? It is absolutely not possible. Actually it not work only. If you want to include video files in a website and that through via a database, then it is required to store the files on a file system. Then, you will have a URL path for every particular video file. This URL path is the field that is required to be stored on the database and not the video as a whole.
    Last edited by opaper; 27-11-2009 at 04:53 AM.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Is it possible to store video files in a database??

    I also tried to check the possibility of storing video files in a database when I was doing some kind of same project as yours. Actually, it does not allow you to store video files in a database. Instead, it gives an error. I do not know what type of scripting language or database you are using. Or else, I could have suggested a reply according to that. But, generally to do so, we you need to convert the video file into binary stream and store the same in the LOB fields.

Similar Threads

  1. How to store mail files using apple mail store
    By Janya in forum Technology & Internet
    Replies: 3
    Last Post: 06-09-2011, 10:23 AM
  2. Replies: 1
    Last Post: 10-08-2010, 03:41 PM
  3. How to store byte array to database with JDBC?
    By RogerFielden in forum Software Development
    Replies: 3
    Last Post: 23-09-2009, 10:52 AM
  4. Can i Store Files on my IPOD
    By Flock in forum Portable Devices
    Replies: 3
    Last Post: 20-08-2009, 01:38 PM
  5. How to store Additional information in Database
    By opaper in forum Software Development
    Replies: 2
    Last Post: 03-01-2009, 07:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,878,637.30845 seconds with 17 queries