This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes Store and Retrive audio files from sql server using JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Store and Retrive audio files from sql server using JSP" Watch "Store and Retrive audio files from sql server using JSP" New topic
Author

Store and Retrive audio files from sql server using JSP

Kathiresan Chinnasamy
Ranch Hand

Joined: Jan 01, 2008
Posts: 65
Hi friends,

How do we store and retrive audio files in SQL server through JSP coding?

If anyone knows please send me the steps and sample codings including database queries..

Thanks in advance
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

For starters, JSP is a poor choice of technology for serving up binary data.
It was designed for serving up text (HTML and Javascript).
A far better and easier alternative is to use a servlet.

In our codebarn, under the servlets section, there is a sample app called SimpleStream. It shows how to stream binary data (in this case, images) to the browser from a servlet.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Store and Retrive audio files from sql server using JSP