473,408 Members | 1,730 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,408 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 1250
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.