J
j
I've written a little photo album servlet. Images can be uploaded and
they are saved to some external directory: /some/dir/photos.
I'd like to be able to access these photos using <img> tags, but don't
know how to access anything outside of the external directory. On the
other hand I don't want to save the images inside the webapps
directory as the photos will all be lost every time I redeploy the
app.
I've created a static dispatcher servlet to access the images, but
it's slower and seems to break browser caching. Thus I'd prefer to
just use <img src="..."> tags if possible.
Can anyone point me in the right direction here?
Thanks,
J
they are saved to some external directory: /some/dir/photos.
I'd like to be able to access these photos using <img> tags, but don't
know how to access anything outside of the external directory. On the
other hand I don't want to save the images inside the webapps
directory as the photos will all be lost every time I redeploy the
app.
I've created a static dispatcher servlet to access the images, but
it's slower and seems to break browser caching. Thus I'd prefer to
just use <img src="..."> tags if possible.
Can anyone point me in the right direction here?
Thanks,
J