This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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?
Don't get me started about those stupid light bulbs.
subject: Hi Please Help me