• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to store audio in mysql

 
diasy doo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to store audio in mysql in java using jsp and servlet. And how to retrive them and play them.



this is my code to upload audio bt cannot upload only upto amount of kbs. i used BLOB datatype in mysql it does not have anylongblob.
so now can anyone help me upload audio,display them on jsp and play them after selecting them.
 
Swastik Dey
Rancher
Posts: 1643
6
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BLOB is always a better option, however as you db has limitations. You may try a different approach. Using the byte stream uploaded create a physical file in server, and store the path of that file in your db.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic