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, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html