File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes FTP data type Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "FTP data type" Watch "FTP data type" New topic
Author

FTP data type

Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
I'm writing a FTPSocket that opens to a ftp server. I need a way of deciding what type of data (binary, text) is coming in.
Any ideas?
Lewin Chan
Ranch Hand

Joined: Oct 10, 2001
Posts: 214
hi adrian,
I'm probably getting the wrong end of the stick here, but if you're writing the ftp client side, then surely you "know" what mode you're in, because you can explicitly set it using "bin" or "ascii"...
Is that what you're trying to get at?


I have no java certifications. <br />This makes me a bad programmer.<br />Ignore my post.
 
 
subject: FTP data type
 
Threads others viewed
ejb environment
Sun's new EJB exam -- be a beta tester!!
Downloading a file from an FTP
FTP
Monitoring a directory?
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com