I have a web app (JSF 2.0) that should display some images.
I read in this thread and implemented an image servlet to send images to the client. Problem is, I am not using a database nor fixed location on the hard drive, just a backing java method returning a byte[] (For the discussion, let's say it's generated on the fly)
I am wondering if there is a 'standard' solution for this problem, namely, How do you display an image that is generated on the fly on a webpage?
UPDATE
I eventually decided to use RichFaces
MediaOutput
Component.
The answer that is marked as correct is, in my opinion, more robust and better for most cases.