Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to upload a mp3 file and store them in the sql server 2005.
And want to retrieve the mp3 from the database and play them in my asp.net page.
Is some one guide me ho could i achieve this ?
Thank you guys in advance.
Posted

1 solution

Well you can accomplish this by numerous way. It is similar to saving images in DB. You can either save the path of your mp3 files or by using a stream you can save them on your DB in bytes. It depends on you how to manage it.

Here is a good article:
Save MP3 Audio Files to database and display in ASPNet GridView with Play and Download option[^]
Some more helper links:
How Can I Save Mp3 File in DataBase As Binary Data ? [^]
Save and Retrieve Files from SQL Server Database using ASP.Net[^]
http://www.aspnetaudio.com/[^]
http://forums.asp.net/t/1849434.aspx/1[^]

Good luck,
OI
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900