Just suggest to use Buffered streams, as it will help in the performance.
BufferedInputStream bf=new BufferedInputStream(new FileInputStream("/file_or_dir"));
The rest of the code remaisn the same...
[]s Emerson
Kam Lung Leung wrote:
Hi,
I am working on a project that needs to retrieve audio files under the root directory of a server (/audio). My question is that Can Tomcat 4.x servers files that are not in the webapps directory. If it can, can someone point me to an example of such set up. Here is an example of how the audio file may be requested from a servlet using http. http://hostName:portNumber/myApp/Hi.wav Tomcat should fetch the audio file Hi.wav from the /audio directory and not from the myApp that is under the webapps directory.
Thank you in advance, Kam
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
