Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to implement FTP through an application itself (Urgent!!!)  RSS feed

 
swapna rajaputra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to know how we can implement FTP through an application...the application should automatically implement it...here we have to transfer some files from one server to another...now what we are doing is like we are getting all the files which are to be transfered into a text file and doing the transfer part explicitely...
the need is that the application itself should get all the details of the files which are to be transfered and internally FTP should also work....and if he files are not transfered properly then the application should try once again lets say after 5 min or so....
we are working on powerbuilder and our backend is oracle...this powerbuilder application should do FTP by itself..the files which are to be transfered will be dynamic so we cant set how many files and what files we are transfering...
this is real urgent and i will be greatful if i get a reply soon...if i can get atleast a general idea also its fine...it will be more helpful to me if anybody replies with respect to the power builder application..
thanks
Swapna
 
Arun, Shanmugham
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi swapna,
I think u can use OCX or other user defined controls. I dont know if u can call an applet or java code. If it is possible to call a java program from PB then u can use a socket program to get the files transfered if it is from remote place or thru FileWriter and FileReader class if it is local. But when i was wrking in PB have'nt used Java in it.
Arun
 
Shiva Kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
try to Use sun.net.ftp.* package or Use Socket. In sun.net.ftp package available in JDK1.1.x, 1.2 and 1.3. It is very Simple to transfer files from One machine to another machine whether that is in local or remote.
Shiva.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!