Guest_imported
New member
- Jan 1, 1970
- 0
Hello!
I need to do RESUME for FTP file download using WinInet.
I am doing:
FtpCommand(FtpCon, // WinInet Connection handle
false,
FTP_TRANSFER_TYPE_BINARY,
_T("REST 111000",
0,
NULL);
FtpCommand(FtpCon, // WinInet Connection handle
true,
FTP_TRANSFER_TYPE_BINARY,
_T("RETR test.txt",
0,
&pFTPFile);
InternetReadFile(pFTPFile, ....);
But InternetReadFile reads the file from the very first byte. What I
am doing wrong?
Oleg Chebotar
I need to do RESUME for FTP file download using WinInet.
I am doing:
FtpCommand(FtpCon, // WinInet Connection handle
false,
FTP_TRANSFER_TYPE_BINARY,
_T("REST 111000",
0,
NULL);
FtpCommand(FtpCon, // WinInet Connection handle
true,
FTP_TRANSFER_TYPE_BINARY,
_T("RETR test.txt",
0,
&pFTPFile);
InternetReadFile(pFTPFile, ....);
But InternetReadFile reads the file from the very first byte. What I
am doing wrong?
Oleg Chebotar