I am trying to upload the file with the following approach:
--------------------------------------------------------------------------------------
HttpURL url = new HttpsURL("user", "user", "localhost", 8000,
                               userUri, null);
 WebdavResource resource = new WebdavResource(url.toString());
boolean ret = resource.putMethod(URLEncoder.encode("myproject" + "/" +
                file.getFileName()), file.getInputStream());
--------------------------------------------------------------------------------------
 
the putMethod returned true, but the file is not uploaded and no record is added into 
the database. Am I using the correct approach or there is a better way? 
 
Thanks
 
 
 



---------------------------------
Do You Yahoo!?
完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间

Reply via email to