tags:

views:

46

answers:

1

I have written a FTP client ( To learn).

Im having problems when handling with spaces. What is the accepted solution for this ( Preferably one that works with "all" ftp servers).
I have tried:
1)Just sending the path name.
2)Sending "FileName With Space.omg"
3)Sending \"FileName With Space.omg\"

Version 3 "works" with getting filesize, in terms the server returns a size 0(Its NOT actualy 0 sized file), but when doing this method for download the server does not accept it.


If it mathers to ppl, this is on a windows mobile and .NET compact framework 2

A: 

Have you tried escaping the spaces? (" " --> "%20")

Gabriel McAdams
Just tried it. Did not work
EKS
Try escaping the spaces by putting a backslash (\) before the space. Like this: FileName\ With\ Space.omg
Gabriel McAdams