cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_INFILESIZE and padded files

From: Peter Seebach <seebs_at_plethora.net>
Date: Wed, 17 Jan 2007 16:15:40 -0600

In message <45AE9462.2000007_at_mindspring.com>, Jason Pump writes:
>I think this should work, and should not return 18. Maybe there's an
>off-by-one error somewhere?

If there is, I can't find it. I'm obtaining size by doing ftell() on
the old stream, using the same size in the new fmemopen, passing it
in with INFILESIZE and apparently getting a valid, non-corrupt, jpeg.

-s
Received on 2007-01-17