• Post Reply Bookmark Topic Watch Topic
  • New Topic

Download voice file using jsp

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to download voice files using jsp.But i have no idea to do this.please assist me with any url or tutorial?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A link tag perhaps?
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
preethi Ayyappan wrote:Hi,

I need to download voice files using jsp.But i have no idea to do this.please assist me with any url or tutorial?

Thanks

If the voice file is available via a standard URL, you can just add a link to your page.
If the file is not otherwise available to the client (for example, if it's just a file on your server's file system or stored within a database, etc.), then you'll need to use a Servlet. There are lots of examples for Image Servlets, which is the exact same thing - your servlet just needs to serve the sound file rather than an image file.

 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just added an article to the ServletsFaq titled ImageServlet (http://faq.javaranch.com/java/ImageServlet) which shows how to serve images (and other multimedia content) from your Servlet-based web application.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!