When i try to retrieve the image file from the
jsp page from the <input> tag it gives excception.
I`m construting my File using the file path that is selected by user in the <input> tag
<input type=file accept=image/gif name='browse'>
String s=req.getParameter(browse);
File f=new File(s); //this line results in runtime exception IIOException
but when directly give it absolute path of image like File f=new File("C:\Users\Mahtab\Desktop\pic.gif");
it works without exception.
So the problem is in constructing the File object .
Please give some solution to this problem
Tea Addict, Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer, Oracle Web Service Developer