A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Sockets and Internet Protocols
FTP a file from mainframe using JAVA
Joined: Nov 14, 2012
Nov 14, 2012 01:49:03
Hello All ,
Say I have a file file.txt on my mainframe host xxx.xxx.xxx.xx created by user QWERTY in the path
. I would like to ftp this file from mainframe to my unix machine. When I run the code
fsDataInputStream=ftpFileSystem.open(new Path ("ftp://QWERTY@xxx.xxx.xxx.xx'TEST/file.txt'") );
the error I get is "Path
is a directory."
fsDataInputStream = ftpFileSystem.open(new Path('TEST/file.txt'), 1000);
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 ?
I agree. Here's the link:
subject: FTP a file from mainframe using JAVA
getPath(), getAbsolutePath(), getCanonicalPath();??
FTP via web application
The File Class
HELP: Java running ftp from xp to linux
Open file on FTP server on a link click ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015