I am new to jsf frame work.I am using jsf2.0 in eclipse ide.I have try to upload a images in jsf2.0.I have uploaded the image but it stored on eclipse server.The problem is when i clean the server the images are deleted.So i need a help,to upload photo into system local folder.please find and help me.
Share
You need to specify an absolute path in
new File(ornew FileOutputStream, depending on how you’re locating the result file).So, do not do
but rather do
(note the starting
/)This way it will be stored on exactly that location in the disk file system instead of relative to the directory from where the JVM is been started.