If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > reg: music file upload into db

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-29-09, 06:55
sree1030 sree1030 is offline
Registered User
 
Join Date: Jul 2007
Location: Bangalore
Posts: 18
reg: music file upload into db

am looking for a process to upload music files into Mysql database.. this is just an interest... i don't want to give file path in the database, trying to put complete file.

Please through your view on this.....

thanks for reply....
Reply With Quote
  #2 (permalink)  
Old 06-29-09, 07:43
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 8,768
in short don't do it
like storing images there are two schools of though, some advocate storing the image, or some in the db, some advocate storing the path to the resource.

personally I'm a believer in storing the path tot he resource rather than the actual resource in the db.
why
..stops db bloat
..reduce time take for backup & restores
..reduces costs involved in the db
..reduces the load on the db server
..allows resources to be located / stored wherever required or wherever available.
..allows you to point to resources outside your own control, reduces the bandwidth costs if its stored elsewhere.

but then again i'm a jaded developer who deep down inside doesn't like relying entirely on netwrok trolls to do the backup and be in a position to restore the db after the event
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 06-29-09, 08:38
sree1030 sree1030 is offline
Registered User
 
Join Date: Jul 2007
Location: Bangalore
Posts: 18
hello healdem,

thanks for reply, i understand the problem when i go with complet file storage in db.... but am curiosity about how to implement.... can i take datatype as String to store... ( this is just for understanding... not for implementation)

Last edited by sree1030; 06-29-09 at 08:42.
Reply With Quote
  #4 (permalink)  
Old 06-29-09, 09:48
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 8,768
I would expect to use the blob datatype for this sort of application
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On