473,394 Members | 1,679 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.

Audio Files in BLOB?

Hello All,

We are building an application that will dynamically choose and pre-pend
short underwriting messages to the audio streamed over the web. We will use
SMIL files. We need to decide if the short underwriting messages are better
off stored in a the database (BLOB field?) or in a physical file with the
references stored in the database. How can we load the audio from a
physical file to the database? Is it a good idea to store audio files in the
database? Will the database storage result in a better response time? Would
anyone care to share the experience on storing audio in the database and
streaming over the web?

Thanks.
- Rajesh
Jul 19 '05 #1
4 9986

MySql seems to handle fair-sized blob fields pretty well. A database I
maintain typically works with 5-10MB blobs with no troubles and fast
response time under light to moderate load.

Factors to consider before making a decision greatly depend on how heavy
the access to your database will be and how large the audio files are.
Larger files will take longer to extract from the database and into your
application (file-based would be faster since there is less overhead,
but is harder to manage and keep in sync). Have lots of RAM and tune
the cache settings, and I'd bet you will be in good shape.

John

Rajesh Kapur wrote:
Hello All,

We are building an application that will dynamically choose and pre-pend
short underwriting messages to the audio streamed over the web. We will use
SMIL files. We need to decide if the short underwriting messages are better
off stored in a the database (BLOB field?) or in a physical file with the
references stored in the database. How can we load the audio from a
physical file to the database? Is it a good idea to store audio files in the
database? Will the database storage result in a better response time? Would
anyone care to share the experience on storing audio in the database and
streaming over the web?

Thanks.
- Rajesh

Jul 19 '05 #2

MySql seems to handle fair-sized blob fields pretty well. A database I
maintain typically works with 5-10MB blobs with no troubles and fast
response time under light to moderate load.

Factors to consider before making a decision greatly depend on how heavy
the access to your database will be and how large the audio files are.
Larger files will take longer to extract from the database and into your
application (file-based would be faster since there is less overhead,
but is harder to manage and keep in sync). Have lots of RAM and tune
the cache settings, and I'd bet you will be in good shape.

John

Rajesh Kapur wrote:
Hello All,

We are building an application that will dynamically choose and pre-pend
short underwriting messages to the audio streamed over the web. We will use
SMIL files. We need to decide if the short underwriting messages are better
off stored in a the database (BLOB field?) or in a physical file with the
references stored in the database. How can we load the audio from a
physical file to the database? Is it a good idea to store audio files in the
database? Will the database storage result in a better response time? Would
anyone care to share the experience on storing audio in the database and
streaming over the web?

Thanks.
- Rajesh

Jul 19 '05 #3
"Rajesh Kapur" <rk****@mpr.org> wrote in message
news:3f***********************@newsreader.visi.com ...
Hello All,

We are building an application that will dynamically choose and pre-pend
short underwriting messages to the audio streamed over the web. We will use SMIL files. We need to decide if the short underwriting messages are better off stored in a the database (BLOB field?) or in a physical file with the
references stored in the database. How can we load the audio from a
physical file to the database? Is it a good idea to store audio files in the database? Will the database storage result in a better response time? Would anyone care to share the experience on storing audio in the database and
streaming over the web?

Thanks.
- Rajesh


You would be better off keeping things as references. The good thing is
that you can also stream almost any video/audio type supported by Windows by
simply creating a link to a playlist file instead of the actual content. I
honestly don't know of any software that would stream directly from a DB as
it seems that would tie up the DB considerably.

Jul 19 '05 #4
"Rajesh Kapur" <rk****@mpr.org> wrote in message
news:3f***********************@newsreader.visi.com ...
Hello All,

We are building an application that will dynamically choose and pre-pend
short underwriting messages to the audio streamed over the web. We will use SMIL files. We need to decide if the short underwriting messages are better off stored in a the database (BLOB field?) or in a physical file with the
references stored in the database. How can we load the audio from a
physical file to the database? Is it a good idea to store audio files in the database? Will the database storage result in a better response time? Would anyone care to share the experience on storing audio in the database and
streaming over the web?

Thanks.
- Rajesh


You would be better off keeping things as references. The good thing is
that you can also stream almost any video/audio type supported by Windows by
simply creating a link to a playlist file instead of the actual content. I
honestly don't know of any software that would stream directly from a DB as
it seems that would tie up the DB considerably.

Jul 19 '05 #5

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

Similar topics

6
by: Juergen Gerner | last post by:
Hello Python fans, I'm trying and searching for many days for an acceptable solution... without success. I want to store files in a database using BLOB fields. The database table has an ID field...
8
by: fuliopen | last post by:
I like to create some audio files for my web site. These are all language files to help the visitor learn a foreign language. There is no music. As far as I know, I can create three types of...
2
by: ViperCB | last post by:
Hello from a newbie, I am trying to do some research on an upcoming project that involves reading in audio files of various formats and using the audio signal as a source of noise to generate...
4
by: Gary Morrison | last post by:
I need to create a lot of fairly-short audio files from the concatenation of a lot of even shorter audio files. I'd like to control that from a Perl script. The audio files would presumably be...
6
by: Quentin | last post by:
Hi, I want to save an audio stream into a circular file so that I only keep say the last hour's audio. Can anybody help? Cheers, Quentin
2
by: hzgt9b | last post by:
Using VS2003, VB.NET, BACKGROUND I have a window forms based application that will be distributed and executed directly from CD media. The app contains a TreeView control and a WebBroswer...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
0
by: universe | last post by:
hi friends, I am developing a webapplication (using ASP.NET 2.0). In that I need to play audio file in the following scenario. Case 1: Only one file will be given as input to audio...
1
Dököll
by: Dököll | last post by:
Greetings, Good buddies! I am for the first time, since I started learning VB, going to build an application I wanted to build for my first son, a language and activities program that will allow...
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...
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
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,...
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...

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.