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

How to upload the file into another server  RSS feed

 
Mothea Anil Kumar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

My application is running in the server1. I know how to save the file in server1. Is there any way to save the uploading file in server2 while uploading through application.

Thanks,
-Anil.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Server 2 must provide an interface that allows you to save files on it.

Also, you need a valid first and last name -> http://www.javaranch.com/name.jsp
 
Mothea Anil Kumar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please explain me clearly what you are saying. For your infomration, no application is running on Server2.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on how Server 2 can be accessed: FTP, HTTP, shared directories, WebDAV, etc.
 
Mothea Anil Kumar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please explain me how to access and save files in server2 using SFTP(This is available on server1 & server2).
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaIoFaq points to a couple of libraries for using SFTP programmatically using Java.
 
nimish kumar
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is your application using jsp,servlets?
If yes, then try "form/multi-part" tag in jsp. It works, i have used this recently in my application.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!