cURL / Mailing Lists / curl-library / Single Mail


raise chunks of memory in callback

From: Oscar Salvador <>
Date: Tue, 22 Mar 2011 10:06:26 +0100

Hi, how are you.

My question is that i'm retrieving an image from internet, and i write
this image into a memory chunk with WRITEFUNCTION and WRITEDATA. The
problem is that libcurl retrieves the image a little slow, because it
calls many times the callback function to write the chunk of image
into a chunk of memory.

Is possible raise this buffer?

An example:

URL-> []
SIZE-> 1252
SIZE-> 2712
SIZE-> 7092
SIZE-> 8552
SIZE-> 11215

As you can see, callback functions is called 5 times, and i believe
that this is worse for better permormance that if it is called only
one once.

Can you help me?

Thanks a lot
List admin:
Received on 2011-03-22