Hello I implemented BalusC's Fileupload example and it works just fine :-D
My question is related to the File direcory. In the example the directory lies on c:\upload
.
My intention is to change my webApps header-image via fileupload. To achieve that I have to different ways in my mind:
Save the picture in my webApps' resources directory and the simply reference it at xhtml page. But unfortunately don't get the webApps's directory to save it there. How to do so?
I save the picture outside my webapp (as shown in the example). But then I have to reference an external image into xhtml pages, which I also don't know how to do..
Can you please show me how to solve one of those ways :-)