1st hit is not the only one hit =) Just check 50 hits or so.
"imageservlet.java" might be a better keyword though.
But in fact it's simple:
1) store images as BLOB in DB
2) create a servlet which listens on, for example, /image
3) call it with for example h:graphicImage src="/image?id=1", /image/1, /image/blah, etc.
4) in this servlet get the BLOB as Inputstream and write it to the outputstream of the response.
would i be too impudent , if i asked you to deliver me the code for the 3 points ? :)
i've no idea how to do it.
2) create a servlet which listens on, for example, /image
3) call it with for example h:graphicImage src="/image?id=1", /image/1, /image/blah, etc.
4) in this servlet get the BLOB as Inputstream and write it to the outputstream of the response.