For uploading a file i used the FileOutputStream() method. And uploading works perfectly. This method allows parameter as file name or the full path(that is from the drive letter. For example-->"C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/mca2006sfssjc.co.in/stud/images/"+num+"."+ext) is required.
Giving full path will not work in another machine (that is software installing server machine). And if i give the file name only, it stores or uploads the file to the folder
C:\Program Files\Apache Software Foundation\Tomcat 6.0.
Now, i need a method to specify a location to store the file which is uploaded. I required to store the file at
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\mca2006sfssjc.co.in\stud\images
by changing the location to the folder "images" instead of giving this full path.
Your previous answer can be used to store file object in a database column of data type "File". I need to change the location of the file to be stored in the ordinary file format. Thanks for your previous reply. Expecting a suitable reply.