Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Problem With Sound Files

Author  Topic 

rammohan
Posting Yak Master

212 Posts

Posted - 2007-03-29 : 07:08:45
hi,
My Task is to store music files in database from my ASP.NET application and also retrieve those files from database n to play it in the pageload section. so i have taken IMAGE datatype in the database(my database is sqlserver2000). first i have converted the sound file into byte array and stored in database. after that i have retrieved thay byte array and assigned to play method in sound player class in System.media name space. the method throwing the error "Wave Header Corrupted". i used wave files(.wav) to do this task. can u show me a way to over come this error and play it success fully. or suggest me a alternate method.

One can never consent to creep,when one feels an impulse to soar
RAMMOHAN

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-03-29 : 07:13:59
As suggested to you in earlier posts, why don't you store the file in the Windows File System and store the path to the file in the database?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

rammohan
Posting Yak Master

212 Posts

Posted - 2007-03-29 : 07:24:22
hi peter,
thank you for replying for my question. but i need to store the
file in the data base only. the order was came from my superiors. so please show me a way to so this.


One can never consent to creep,when one feels an impulse to soar
RAMMOHAN

Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-03-29 : 07:29:18
I believe I showed you "an alternative method", as requested in your original posting.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -