Click here to Skip to main content
16,015,827 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to store a mp3 file in database.

[edit]Subject, tags - OriginalGriff[/edit]
Posted
Updated 25-Oct-10 9:12am
v2
Comments
Marc A. Brown 25-Oct-10 15:13pm    
And what have you tried so far?
OriginalGriff 25-Oct-10 15:15pm    
Please edit your question and provide more detail:
What database - MDB, SQL, mySql, SqlCe, Oracle... - the field names are slightly different, though the process is the same.
What have you tried?

1 solution

There are two approaches to take:

1) Store the mp3 content directly in the DB. This is probably not a great idea. Most databases will have some kind of blob field type that you can use for this.

2) Store file paths to the actual mp3 content, which will remain as physical files on a server.
 
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