Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Move uploaded file to remote server from jsp?  RSS feed

 
Ken Januski
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've recently gotten com.oreilly.servlet.MultipartRequest working in a jsp page. But I need to move the uploaded file from the directory on the server to a remote directory. And I'm running into "Access is denied" errors when I try to write it. I've set up what I think are proper NT permissions on the remote pc but I'm wondering if the problem is really one of Jsp permissions. I admit that until now I've never really paid much attention to them.
Thanks for any ideas,
Ken
 
Ken Januski
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I did manage to do this using jcifs and using SmbFileInputStream and SmbFileOutputStream. But it was very slow. So I'm still wondering if there isn't a quicker way to do this, esp. as I'm going to be moving large jpg files.
Ken
 
Ken Januski
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving speedily on to answer my own question once again:
It seems that an even better method is SmbFile.copyTo(SmbFile).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!