aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes FTP a file from mainframe using JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "FTP a file from mainframe using JAVA" Watch "FTP a file from mainframe using JAVA" New topic
Author

FTP a file from mainframe using JAVA

Radhika Alok
Greenhorn

Joined: Nov 14, 2012
Posts: 1
Hello All ,
Say I have a file file.txt on my mainframe host xxx.xxx.xxx.xx created by user QWERTY in the path TEST. I would like to ftp this file from mainframe to my unix machine. When I run the code

the error I get is "Path ftp://QWERTY@xxx.xxx.xxx.xx'TEST/file.txt' is a directory."

On giving



I get the error : File 'QWERTY.'/'TEST/file.txt does not exist. It appends the 'QWERTY.'/' on its own.

Any pointers on how to give this file path name ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: FTP a file from mainframe using JAVA