473,386 Members | 1,908 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,386 software developers and data experts.

Media Database

I have several mp3 files that I want to access through
database functionality. I want to have a text "pointer"
to the actual files, in the database. When the field in
the database is fired, the mp3 file should play in the
media player. How do I do this?

Thanks for your help.
Jul 21 '05 #1
2 1249
Your db can just store a string for the filename. To use .NET to launch
something, use System.Diagnostics.Process. Using the ProcessStartInfo
class, you can set arguments and configure how the process should run. You
can use ShellExecute to "execute" the .mp3 directly. This will have the
same effect as double-clicking an MP3 file (it'll use whatever program is
registered for that extention). The other way would be to start
wmplayer.exe with the filename as an argument.
-mike
MVP

"Gordan M." <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
I have several mp3 files that I want to access through
database functionality. I want to have a text "pointer"
to the actual files, in the database. When the field in
the database is fired, the mp3 file should play in the
media player. How do I do this?

Thanks for your help.

Jul 21 '05 #2
Mike,

Thanks for your reply. That gives me a place to start.

-----Original Message-----
Your db can just store a string for the filename. To use .NET to launchsomething, use System.Diagnostics.Process. Using the ProcessStartInfoclass, you can set arguments and configure how the process should run. Youcan use ShellExecute to "execute" the .mp3 directly. This will have thesame effect as double-clicking an MP3 file (it'll use whatever program isregistered for that extention). The other way would be to startwmplayer.exe with the filename as an argument.
-mike
MVP

"Gordan M." <an*******@discussions.microsoft.com> wrote in messagenews:02****************************@phx.gbl...
I have several mp3 files that I want to access through
database functionality. I want to have a text "pointer" to the actual files, in the database. When the field in the database is fired, the mp3 file should play in the
media player. How do I do this?

Thanks for your help.

.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Praveen | last post by:
Hi All, I'm using Oracle 8.1.7 on Win2k Prof. Today morning because of power problem, my system has restarted 8 times. When the power became stable and switch on my system, the oracle says...
2
by: John | last post by:
I want to be able to record media off CD's and onto the C: drive, and then control display - all via the framework. Is the Media Player SDK ActiveX control the best for this? Or some other...
4
by: SStory | last post by:
I have an app that includes media files (graphics) and those included in the msi setup. They are not 100% necessary and can change. The problem is if I delete one of them, then the next time I...
1
by: Shane | last post by:
I'm trying to access the media player (V10) mediacollection object from my ..NET web service to return a list of media files. For some reason when i call getByAttribute("MediaType", "Audio") ...
2
by: Gordan M. | last post by:
I have several mp3 files that I want to access through database functionality. I want to have a text "pointer" to the actual files, in the database. When the field in the database is fired, the...
2
by: Divakar | last post by:
Hi All, We are trying to restore a backup that we took last night on a fresh new Tape. The backup was successful but the restore is failing with the following error: db2 =restore db gpiecuk...
2
by: Sandman | last post by:
Ok, so I'm the author of a pretty big CMS system (big as in huge, not market-share big) and I've been thinking about a problem for a few weeks here on media management. The CMS accomodates both...
0
by: Konrad | last post by:
Hi everyone. I've got problem with converting xml file to xsd schema. The Xml file looks like: <?xml version="1.0" encoding="iso-8859-2"?> <rss version="2.0"...
0
by: kplazinski | last post by:
Hi everyone. I've got problem with converting xml file to xsd schema. The Xml file looks like: <?xml version="1.0" encoding="iso-8859-2"?> <rss version="2.0"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.