curl-library
Re: Posting big files with libcurl
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 29 Nov 2006 11:40:12 +0100 (CET)
Date: Wed, 29 Nov 2006 11:40:12 +0100 (CET)
On Wed, 29 Nov 2006, Lepidosteus wrote:
> First, in case I misunderstood you, did you meant that CURLFORM_FILE does
> not read the whole file at first when we set this option, but sequencially
> when doing the post ? (thus not filling the ram except with an internal
> buffer, thus resolving my problem)
Correct.
> Second, if not, how can I do it ? (I don't see the buffer acting like a
> stream that I can "refill" when needed)
The only other way would be that you do the multipart formatting of the post
yourself and provide the data to libcurl with a read callback, which then
becomes stream-like.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-11-29