Your code looks ok to me, is it throwing an exception? Serving it back with
s:graphicImage should be a snap, as it supports loading the image from a file directly.
Here's what the docs say:
anonymous wrote : Attributes
|
| * value ? image to display. Can be a path String (loaded from the classpath), a
byte[], a java.io.File, a java.io.InputStream or a java.net.URL.
| Currently supported image formats are image/png, image/jpeg and image/gif.
| * fileName ? if not specified the served image will have a generated file name.
If you want to name your file, you should specify it here.
| This name should be unique
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069845#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...