Hi.
Take a look at the sandbox graphicDynamicImage. There you can write your
own ImageRenderer and you're free where you read the images from.
In my webapp uploaded files go to a separate directory outside the
deployment directory of tomcat. The ImageRenderer reads files from there
and displays them to the user.
Perhaps it helps.
regards,
Veit
m1380103 schrieb:
> Basically I'm building an ecommerce site using MyFaces. I have over a years
> experience with it, though I've come across a problem I have never
> encountered before.
>
> For this site the user can upload images of the item they are selling.
> Except I am having some problems with storing this and displaying the info
> on screen. I was going to save the image to a location locally
> ("C:\images\uniqueId") and display this with <h:graphicImage> but it does
> seem to like reading from this location. I am running on a windows machine
> but noticed when supplying the string for the location of an icon saved
> within the application the directory would be /Deploy Name/image.
>
> How can I use the graphicImage tag to read from outside it's JBoss
> deployment? Or would it be better saving somewhere else when a user uploads
> an image?
>
> Any help would be much appreciated as I have no experience with uploading
> and saving of images on this form of web application. I would prefer to
> save a link in the database and display this way if possible.
>
> Thanks
> Michael.