I am trying to read data from a file from ftp server. This piece of code works perfectly in java when i run from my desktop computer. I copied over the same code to android
Remove:
;type=i
from your URL:
String s = "ftp://username:password@ftp.mysite.x10.mx:21/sg1996text.txt;type=i";
It works in my application.
Error 550 usually means "permission error", so the most likely cause is username/password mismatch (but see case #3).
Yet, if the same code works on your desktop, username and password ought to be correct. The possibilities I see are:
ftp.mysite.x10.mx
but to somewhere else, e.g. a development installation on localhost (I did this once; took me some time to figure it out). Try changing the server name to its IP address.