When I try downloading a file with winsock, I get the following error: "Wrong protocol or connection state for the request transaction or request".

After reading many threads on the forums, I've learned that this is mainly caused by the connection state that must be '7'.

Actually, this is not my problem, as I am correctly connected to the ftp. On the same connection, I have been able to download a 90 bytes text file succesfully.

The file I am trying to get is exactly 247kb and I am only receiving from 220k to 240k of the file each time I try it. This makes the file unusable.

Any idea? Thanks.