Hi I am working on upload problem.. I am using jspsmart api to upload any type of files from the browser and I am storing into oracle database. Here I am getting file from browser and I am saving in web server virtual path "/demo/upload" after that I am taking this file and I am storing into database. It's working fine. The problem is I am taking physical path like "/opt/JRun/servers/default/myapp/demo/upload/" I am opening this file and I am reading this file and I am storing into oracle Blob data type. The problem is here I am hard coding this physical path in my program. I am using ServletContext.getRealPath("") to get physical path but it is not getting physical path but I am getting web server root directory. Please any help me this problem, I will thankful to u. Please reply to this mail asap. Thanks, Malla Reddy [EMAIL PROTECTED] count = mySmartUpload.save("/demo/upload"); String filename = mySmartUpload.getFiles().getFile(0).getFileName(); String realpath= "/opt/JRun/servers/default/myapp/demo/upload/"; fullpath = realpath + filename; _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets