JavaRanch Home
 
Front Page FAQs Ranchers Categories Recent Changes To Do Upload

Code Barn Simple Stream   



A small app containing a servlet that can stream images from within the web application's directory structure using getResourceAsStream. Because the resources (images in this case) can only be accessed via the StreamServlet? this technique could be used to allow access to specific resources to users who are logged into your application and deny them to the general public.

To Run:

  1. Download SimpleStream.war to your TOMCAT_INSTALL/webapps directory. If you're using MSIE, make sure it doesn't change the extension to ".zip".
  2. Then, click on this link: http://localhost:8080/SimpleStream

Donated by: Ben Souther



CodeBarnServlets

Front Page FAQs Ranchers Categories Recent Changes To Do Upload
Last Edited: 28 September 2007 What's Changed?
READ ONLY
 
Copyright © 1998-2008 Paul Wheaton | Home | Contact Us | Privacy | Register