File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Hi  Please Help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Hi  Please Help me" Watch "Hi  Please Help me" New topic

Hi Please Help me

Jitendra Nayak

Joined: Mar 13, 2006
Posts: 9

1. am using Apche comms .net api to tansfer single image file(tif).

2.port 21 only opened in wins Nt server.

3.manually i can transfer the images thrg FTP.

4.please thr API (binary mode and Ascii am transferring images).

am not able to see images.(inthe path)

is it possible to use port 22 (client res ask me to use only 22)

please what are info i should consider while transfer image to FTP.

what info i should collect from sys/net admin abt server?

FTPClient ftp = new FTPClient();
ftp.connect( server );
int gg = ftp.getDefaultPort();
System.out.println("The port number id ="+gg);

ftp.login( username, password);

System.out.println("Connected to " + server + ".");
int reply = ftp.getReplyCode();
System.out.print(ftp.getReplyString()+"FROM TEXT FTP CODE="+reply);

if (!FTPReply.isPositiveCompletion(reply))
System.err.println("FTP server refused connection.");


InputStream input;

input = new FileInputStream(srcFolder);
System.out.println("The value of = "+input.toString());
System.out.println("The value after store file of");
System.out.println("The value after closing stream ");

C://please hlp me?
I agree. Here's the link:
subject: Hi Please Help me
It's not a secret anymore!