User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 428,364 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,432 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

Retrieve videos from databse

Join Date: May 2008
Posts: 34
Reputation: sebastian3 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
sebastian3 sebastian3 is offline Offline
Light Poster

Re: Retrieve videos from databse

  #5  
May 15th, 2008
Firstly upload the video file to a folder in the server by :

  1. if (flUpload.PostedFile.ContentLength > 0)
  2. {
  3. String strPath = Server.MapPath("../") + "UploadedFiles/Folder";
  4. flUpload.PostedFile.SaveAs(strPath + "/" + this.flUploadBrief.FileName.ToString());
  5. }

where <asp:FileUpload runat="server" ID="flUploadBrief" /> is the FileUpload Control.

And save the name of the File in database.

Then u can view the video by :
<embed src="video.avi" />
Last edited by peter_budo : May 15th, 2008 at 4:56 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote  
All times are GMT -4. The time now is 6:50 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC