tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <>
Subject Re: Need Help w. Servlet Images.
Date Fri, 01 Apr 2005 02:49:07 GMT
On Thu, Mar 31, 2005 at 02:42:10PM -0500, Steve R. Burrus wrote:
: Can someone/somebody please tell me just how exactly I go about viewing an image using both
of the FileInputStream and the FileOutputStream classes in connection with the method "getRealPath()"??

Share your code, and we can help point out bugs.

Better yet: what does the stack trace indicate is the source of the

: I have been failing to view the images due to always getting a "java.lang.NullPointerException"
every time that I try to see the images in my browser. 

I recall getRealPath() doesn't work quite well inside packed WAR files,
if that's how you're running.  

If you're streaming images, why not place them outside of the webapp?
That lets the images and the webapp vary independently.



software   --
tech news  --
code scan  --

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message