PLEASE:: FTP Connection type BINARY with the SOCKET

hi all,
using SOCKET s in the FTP how can i set the Binary mode transfer.
i tried the "TYPE" command with the frist argument as "I"....but :(
Please help me.
Regards,
manish

Socket clientSocket = serverSocket.accept();
Is used when you want to receive data.
... after seding the command it Hangs
Suggenst you want to send data.
The fact that Socket clientSocket = serverSocket.accept(); is because what this
command does is wait untill some client sends you a connection request and when
that happens accept that connection and create a socket for it.
When you want to send data you don't need a ServerSocket.
Socket s = new Socket();
http://javaalmanac.com/cgi-bin/search/find.pl?l=split&words=socket
I could not find any samples using ftp, I guess the URL object would wrap your
messages according to the protocol you want to use and is a better candidate for ftp
than the socket
http://www.nsftools.com/tips/JavaFtp.htm

Similar Messages

Maybe you are looking for

  • How can I install itunes if i try to install it but, it tells me that the version of bonjour can't be removed?

    I have tried looking for bonjour but i can't find it or uninstall it. I need help please if someone could help me.

  • Help-iPod Software messed up!!!!

    I connected my iPod over USB 1.1, after realizing it was formatted for windows. iPod Software updater wont restore it over USB or something and quits when I try to update it. So I went to Disk Utility and erased the iPod for Mac OS Extended. Now it w

  • E61 GPRS connection not disconnecting

    Hello, I have recently updated my E61 to the latest firmware 3.xxx Now I have noticed a strange thing where built in email client does not disconnect from GPRS at all, unless I manually disconnect it. With previous firmware 2.xxx and my settings of "

  • Possible to use http for web authentication?

    Hi All, We are using WLC 2500 and AP 1041 with web authentication. Due to we do not have the trusted/public certificate and want to get rid of the certificate warning during the user login. I would like to ask if this is possible to change the web au

  • How to select data Monthwise

    my date is insert in the table as '2013-09-05 12:14:53.000' i want to select month wise data from database(SQL) if for any month ,data is not available,then i want to select null value for this month,plz help me Thanks