SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upload a video file of any format and store it in database

    Hi,

    can anyone help for uploading a video file in database and viewing the video file fetching from database in php.

    But i need the video file in any format when uploading and convert the video file to a specific format and play.

    Thanks in advance

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,547
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    You'll either need to install software on your server to do the conversion (ffmpeg) or use a 3rd party service such as heywatch

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As EastCoast said, you'll need to install some software to convert the video. Also it is not good practice to store file directly into database. You should upload & save file into the folder & then save the file path into database. Place upload folder outside the root directory to protect it from direct access.

  4. #4
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank u so much....i tried it and set the problem..........

  5. #5
    SitePoint Guru marcel's Avatar
    Join Date
    Nov 2000
    Posts
    920
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't do it...
    just store it as a file


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
  •