cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
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.

-- 
  / daniel.haxx.se
Received on 2009-04-27