cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Transfer Large files using FTP.

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 11 Mar 2009 23:08:01 -0600

On Thu, Mar 12, 2009 at 12:09:18AM +0530, Ashish Soni wrote:
> I have created an application in C++ to transfer files to a FTP server. I tried
> it with up to 1 GB files and the application worked fine. But with 4GB file it
> didn?t work. My application sends the whole file in small chunks and uses file
> handling function like fopen_s, ftell, fseek, fread etc. I ended up concluding
> that to handle large files I will have to use function _fseeki64, _ftelli64 etc
> and use __int64 instead of long data type but there is not much help available
> about how to use these function. Also I could not find replacement of function
> fread().
>
> Is there any sample application which shows how to handle large files.
>
> Any help is appreciated.

Large file handling is platform dependent; enabling it is done differently on
different platforms. Since this doesn't have to do with libcurl, try
asking in a forum related to your platform.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2009-03-12