"J.P.Jarolim" <> wrote in message
news:3fc0a6d7$0$28626$ y.telekom.at...
.....
> So you should have a look at
> Object.getClass().getClassLoader().getResource()
> Thats the way to get a file located in the same jar as the executed
> program - so there should be a way to get files out of another jar around
> imho.
>
> Additionally you can create a servlet which reads the raw file content and
> serves it to the browser.
> You should change the mime-return-type of the servlet to image/jpeg or
> whatever you want to serve.

Sorry! It's one of those, 'what to put in,
what to leave out' things - where apparently
I misjudged on two counts..
a) Forgot to mention that I also want to
create new images (eg graphs of data)
and present them in pages as well.
(So occasionally the images will not exist till
moments before they are delivered to the
web surfer)
b) _Not_ using the image/jpeg thing.
First, because I wish to put the images
into pages containing other, textual data,
and AFAIU that content type is only
suitable for a single image.
Second, because I thought I'd read
somewhere that it had been deprecated(??)
(not sure whether by Sun or W3C)
Perhaps I should also point out that actually
getting the images is not a problem, I have already
created applets that present zip/jar files as
directory structures that can display html (complete
with images) in a (otherwise horrendously poor)
JEditorPane. e.g.
http://www.physci.org/applet/Ziplet.htm
--
Andrew Thompson
*
http://www.PhySci.org/ PhySci software suite
*
http://www.1point1C.org/ 1.1C - Superluminal!
*
http://www.AThompson.info/andrew/ personal site