473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Playing a movie file stored in the db

93
Hi

How do I display content in a table of database (MSSQL) that content a jpeg image, and other information and when it displayed, I can click at the image to play the video (like in a YouTube).

Please help me.

Thanks.
Aug 17 '07 #1
5 1087
pbmods
5,821 Expert 4TB
Changed thread title to better describe the problem (did you know that threads whose titles contain three words or less actually get FEWER responses?).
Aug 17 '07 #2
nma
93
Changed thread title to better describe the problem (did you know that threads whose titles contain three words or less actually get FEWER responses?).
Thanks for the info.
Aug 17 '07 #3
nma
93
I plan to store the movie files not at the database but in the database able just store a link to a movie (e.g G: drive external hard disk)

How do I choose the field type for links like that? Can anyone give examples?

Thansk
Aug 17 '07 #4
pbmods
5,821 Expert 4TB
Heya NMA. Welcome to TSDN!

You can store file paths and links as plain ol' varchars.

You'll probably want to do something like this:
Expand|Select|Wrap|Line Numbers
  1. $row = mysql_fetch_assoc($_res);
  2. echo '
  3. <object type="application/x-shockwave-flash data="c.swf?path=' . $row['file_path'] . '" width="400" height="300">
  4. <param name="movie" value="c.swf?path=' . $row['file_path'] . '" />
  5. <img src="noflash.gif" width="200" height="100" alt="" />
  6. </object>';
  7.  
Aug 17 '07 #5
nma
93
Heya NMA. Welcome to TSDN!

You can store file paths and links as plain ol' varchars.

You'll probably want to do something like this:
Expand|Select|Wrap|Line Numbers
  1. $row = mysql_fetch_assoc($_res);
  2. echo '
  3. <object type="application/x-shockwave-flash data="c.swf?path=' . $row['file_path'] . '" width="400" height="300">
  4. <param name="movie" value="c.swf?path=' . $row['file_path'] . '" />
  5. <img src="noflash.gif" width="200" height="100" alt="" />
  6. </object>';
  7.  

thanks for the code..I'm using sql server as my databse. will inform later if succeed.
Aug 20 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: phoenix | last post by:
Hello, I'm not certain which group is best to post so I'll keep it to the general one. I have a yuv-movie-file (4:2:0) which I want to play using C#. I know that DirectX doens't support the...
2
by: Frances Del Rio | last post by:
pls how do I detect if .swf movie is playing or has stopped? .swf is in a pop-up, I would like to trigger a window.close() once Flash movie has stopped playing.. (pls don't lecture me about...
1
by: Lyndon | last post by:
Hi guys, I've got a problem... I'm developing a webpage on my computer and I can't get the links to my MPEG movies to work. I want them to launch in a Windows Media Player. This is my...
1
by: Jignesh Desai | last post by:
Playing Flash Files in ASP.NET Copy the HTML code below and paste it into your HTML<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://downloa...
14
by: askMe | last post by:
I developed a web page that plays an mpg using the simple embed tag. When the page loads, the video starts, but then stops after a few seconds. I use the embed tag because I want the user's...
0
by: rrowles2000 | last post by:
Hi, I'm trying to create a class (see code below) that will give me direct control over a flash component, and still have it as a form control. To do this I'm retrieving data from the database...
1
by: majestik | last post by:
Question, can I see an event in Javascript that tells me a video starts playing using the <embed src="file.wmv>. I stream the video, but there is a wait time and wanted to pop up a message telling...
0
by: universe | last post by:
I am using ASP.net 2.0 to develop a web application in which I am playing a video file using "active movie player (media player)". How do I know that the video file playing is completed from ASP.Net...
2
by: aditya1601 | last post by:
Hi all, I have added a wmp control onto my form. and put the following code for it. Dim oMovie As WMPLib.IWMPMedia oMovie = wmpPreview.newMedia("H:\Movie.avi") ...
4
chelvan
by: chelvan | last post by:
hi all <! -- Google Video HTML Code -- > <embed style='width:400px; height:326px;' id='VideoPlayback' align='middle' type='application/x-shockwave-flash' ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.