File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes music format in database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "music format in database" Watch "music format in database" New topic
Author

music format in database

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Is it a good idea to put mp3 or wave file into a database? Will that fit a BLOB type?

SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Yes, you will need a BLOB to store WAV or MP3 contents. Whether that is good idea, or if it is better to store the music files in some other location and store paths to them in the database is a debate I will leave for others.


JBoss In Action
 
Don't get me started about those stupid light bulbs.
 
subject: music format in database
 
Similar Threads
Tech Word Game
Large Files
Sharing data between web app's
Shopping Cart - Part 2
share data