FTP passive - file empty

Hello,

I have an Arduino Due R3 and Ethernet Shield 2 (w5500)

My "getFtp" is ok but code:

 while (dclient.connected())
  {
    if (dclient.available())
    {
      char c = dclient.read();
      clientsList.print(c);
      Serial.write(c);
    }
  }

only return: "ÿ" :/

w5500 have problems with passive ftp ?

arduino log: SD opened ÿ SD closed

ftp log:

(000005)31-12-2015 12:53:41 - arduino (192.168.89.11)> 227 Entering Passive Mode (192,168,28,110,242,80) (000005)31-12-2015 12:53:41 - arduino (192.168.89.11)> RETR /terminal_001/config.ini (000005)31-12-2015 12:53:41 - arduino (192.168.89.11)> 150 Opening data channel for file download from server of "/terminal_001/config.ini" (000005)31-12-2015 12:53:41 - arduino (192.168.89.11)> 226 Successfully transferred "/terminal_001/config.ini"

w5500 have problems with passive ftp ?

No, but we have a problem with snippet posters.

?

ok…

if i try to read only works fine…

while (dclient.connected())
{
while (dclient.available())
{
char c = dclient.read();
Serial.write(c);
}

}

/*
currrentFile = SD.open(fileSD, FILE_WRITE);

if (!currrentFile)
{
Serial.println(F(“SD open fail”));
return 0;
} else {
Serial.println(F(“SD opened”));
}

while (dclient.connected())
{
while (dclient.available())
{
char c = dclient.read();
currrentFile.write(c);
Serial.write(c);
}

}

currrentFile.close();

Serial.println(F(“SD closed”));
*/

Post all your code, or a link to it. It kinda looks like my FTP code from the playground, correct?

What happens if you do everything but write to the SD card? Open the file and close it, but just don’t write. Does it do ok?