cURL / Mailing Lists / curl-library / Single Mail


Re: Use memory to ftp upload large image and got a bad performance

From: Daniel Stenberg <>
Date: Mon, 27 Apr 2009 08:36:23 +0200 (CEST)

On Mon, 27 Apr 2009, huafeng wu wrote:

Please don't top-post!

> memcpy((char *)ptr, &pRead->memory[0], BUFFER_SIZE);

You should copy as much data as libcurl asks you for. BUFFER_SIZE will not be
universally fine.

Received on 2009-04-27