Get a full path from a file

Hello, how can i retrieve a the full path from a file in a itemFile, example:

String orig ="c:\\"+fileItem.getName();
        String dest = "c:\\"+"file.xml.bak";
        File fOrig = new File(orig);
        File fDest = new File(dest);
        try {
            FileUtils.copyFile(fOrig, fDest);
        } catch (IOException e) {
            e.printStackTrace();
        }

in getName i get the name, but a i need the full path, for example C:\test.txt
so i don’t need to put the string “c:\” in the code.
Thanks you.

no one knows??

Have you reviewed the Javadoc for File?

Yes, but the problem i thing is the fileItem, it doesn’t have a method to retrieve the absolute path, and is the only i need.

What is the class of fileItem?

Are you using org.apache.commons.fileupload.FileItem? If so, that isn’t supposed to have a full pathname (though Opera and IE will provide that).

What do you need to achieve? Perhaps someone will have an approach.