File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
The File Class
FTP via web application
HELP: Java running ftp from xp to linux
Open file on FTP server on a link click ?
getPath(), getAbsolutePath(), getCanonicalPath();??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013