473,396 Members | 2,003 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,396 software developers and data experts.

Inserting audio data

164 100+
Help me how to insert audio or wave files into sql server database and what data type do i have to use..?

Give me samples.....

And also I want to know how to retrieve them?


Thanx...........
Feb 9 '07 #1
10 2517
iburyak
1,017 Expert 512MB
I would save full path to wave files not files themselves.
Retrieve full path from the database and go to the file and retrieve it.

Good Luck.
Feb 9 '07 #2
Killer42
8,435 Expert 8TB
I would save full path to wave files not files themselves.
Retrieve full path from the database and go to the file and retrieve it.
For another option, have a look at the Tips & Tricks thread, at the top of the VB forum. Among other things, it includes instructions on how to store and retrieve images in a BLOB (Binary Large Object) field. Should also work for sound files. You can also use an OLE field.

Note, this relates to Access - I'm not sure how closely SQL Server resembles it.
Feb 9 '07 #3
arunbalait
164 100+
Ya thanx.. But I know how to store in Access but I need it in SQL Server...

What data type do i have to use?

I used OLE object datatype for Access but what for sql server?
Feb 9 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
Ya thanx.. But I know how to store in Access but I need it in SQL Server...

What data type do i have to use?

I used OLE object datatype for Access but what for sql server?
All Access is doing is storing the path to a linked file or the full file if it's embedded. Storing embedded files is not recommended. In Access it is the OLE Object properties that determine how access treats this file and what application it uses to open it. As far as I'm aware this is not a feature of SQL Server.

Mary
Feb 10 '07 #5
Killer42
8,435 Expert 8TB
All Access is doing is storing the path to a linked file or the full file if it's embedded. Storing embedded files is not recommended. In Access it is the OLE Object properties that determine how access treats this file and what application it uses to open it. As far as I'm aware this is not a feature of SQL Server.
Thanks, Mary.

Presumably SQL Server has an equivalent to BLOBs, though? Arunbalait might need to go to simply storing the audio as a chunk of data and dumping it into a temp file to play it, much like the image thing I referred to earlier. Seems crude, but may be unavoidable.
Feb 10 '07 #6
MMcCarthy
14,534 Expert Mod 8TB
Thanks, Mary.

Presumably SQL Server has an equivalent to BLOBs, though? Arunbalait might need to go to simply storing the audio as a chunk of data and dumping it into a temp file to play it, much like the image thing I referred to earlier. Seems crude, but may be unavoidable.
I know BLOB's are used for image files so there is probably a way of doing it for audio files also. Unfortunately, not my area of expertise. I have asked someone else to have a look at this who may have more experience in this area.

Mary
Feb 10 '07 #7
arunbalait
164 100+
Ya me too heard abut BLOB. But I want exact syntax for using BLOB...

Give me an example like
insert into tab1 values(?,?)
to insert audio data....

Also for creating table regarding this..


give me exact sample code plz...

thanx
Feb 10 '07 #8
arunbalait
164 100+
I already got answer to store the audio data into Access. Its simply like storing image files using OLE object type. But I want to know about SQL Server. What datatype to use, how to insert etc., In access we can give the path to store. I used the same procedure in SQL but its not working...

I used varbinary data type in sql server
Feb 10 '07 #9
arunbalait
164 100+
Finally I got the answer... I used image datatype in sql server to store wav files..

Thanx for u all...

Then anybody know abut .dss extension audio files?

Thank you
Feb 10 '07 #10
NeoPa
32,556 Expert Mod 16PB
Then anybody know abut .dss extension audio files?
You should really ask this question in another thread.
That makes it easier to manage things and more people will look at a new thread than jump into another thread that is already started.
Feb 10 '07 #11

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

Similar topics

5
by: David | last post by:
Hey, I'm looking for a code that can insert live audio, just like live video using Netmeeting as a host. The code I have for video is: <HTML><OBJECT ID="NetMeeting"...
0
by: consulttech2004 | last post by:
Folks, Someone I know is using Microsoft Access 2003 to create a Data Access Page. They have inserted a Quick Time Movie. When they view the page (the HTML version of the page) and run the...
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...
11
by: jim shirreffs | last post by:
Hello, I am trying to put together a Java system for playing audio CDs on a large CD player, I have most of it working But entering all the data like Artist, Title, track name, track length...
2
by: positivebalance41m | last post by:
I have been searching how to do sound capture (record audio input) in VB.NET for days now. I find some references to "winmm.dll" calls, but they give VB5 or VB6 examples which won't code convert...
0
by: arunbalait | last post by:
Anybody know how to insert wav data into sql server... What data type do I have to use create table for storing wav data? And how to insert them? Please give me syntax for all. And also to...
3
by: Udhay | last post by:
Sir, I want to read the data of an audio file in c++ (Windows). What is the API which helps to read the data of an audio file. I want to read BitRate,Audio Sample Size,Audio Sample rate and...
0
by: Carlos Leite | last post by:
Is there any other option to analyze audio frequencies? Or Any here try to use pymedia to a simple audio FingerPrint. A cant understand what the information the asBands() really giveme....
3
by: AWW | last post by:
Using XP and VB 2005, it seemed like a good idea to save audio in the clipboard and then play it with backgroundworker. Cannot find a good Clipboard audio example anywhere - just SetAudio and...
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: 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
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
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,...

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.