Click here to Skip to main content
15,214,756 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100